Skip to content

Commit

Permalink
Call reset before deleting the MTRDiagnosticLogsTransferHandler object
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed Nov 5, 2023
1 parent b5e2f4e commit 7294b5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@
} else if (event.EventType != TransferSession::OutputEventType::kMsgToSend || !event.msgTypeData.HasMessageType(MessageType::BlockAckEOF)) {
error = CHIP_ERROR_INTERNAL;
}
Reset();

// Notify the MTRDevice via the callback that the BDX transfer has completed with error or success.
if (mCallback) {
mCallback(error != CHIP_NO_ERROR ? NO : YES);
}
Reset();
return error;
}

Expand Down

0 comments on commit 7294b5a

Please sign in to comment.