Skip to content

Commit

Permalink
Timeout for BDX log should be treated as an abort transfer on failure…
Browse files Browse the repository at this point in the history
… use case
  • Loading branch information
nivi-apple committed Jun 7, 2024
1 parent fc69249 commit 7c28d9c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ void BDXDiagnosticLogsProvider::OnInternalError()
{
ChipLogError(BDX, "Internal Error");
VerifyOrDo(mIsAcceptReceived, SendCommandResponse(StatusEnum::kDenied));
Reset();
mTransfer.AbortTransfer(GetBdxStatusCodeFromChipError(CHIP_ERROR_INTERNAL));
}

void BDXDiagnosticLogsProvider::OnTimeout()
{
ChipLogError(BDX, "Timeout");
VerifyOrDo(mIsAcceptReceived, SendCommandResponse(StatusEnum::kDenied));
Reset();
mTransfer.AbortTransfer(GetBdxStatusCodeFromChipError(CHIP_ERROR_TIMEOUT));
}

void BDXDiagnosticLogsProvider::SendCommandResponse(StatusEnum status)
Expand Down

0 comments on commit 7c28d9c

Please sign in to comment.