Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple committed Oct 1, 2023
1 parent 0dddcdb commit 4bbb9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
{
assertChipStackLockedByCurrentThread();

if (mExchangeMgr) {
mExchangeMgr->UnregisterUnsolicitedMessageHandlerForProtocol(Protocols::BDX::Id);
mExchangeMgr = nullptr;
}
MTROTAUnsolicitedBDXMessageHandler::mNumberOfDelegates = 0;
}

Expand Down
22 changes: 2 additions & 20 deletions src/protocols/bdx/AsyncTransferFacilitator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ CHIP_ERROR AsyncTransferFacilitator::OnMessageReceived(Messaging::ExchangeContex
// If its a message of type kMsgToSend, send the message over the exchange.
if (outEvent.EventType == TransferSession::OutputEventType::kMsgToSend)
{
err = SendMessage(outEvent);
if (err != CHIP_NO_ERROR)
{
// TODO: Should we abort transfer here or let the other side timeout
return err;
}
SendMessage(outEvent);
}
else
{
Expand Down Expand Up @@ -188,20 +183,7 @@ void AsyncResponder::NotifyEventHandled(CHIP_ERROR eventHandlingResult)
{
if (outEvent.EventType == TransferSession::OutputEventType::kMsgToSend)
{
CHIP_ERROR err = AsyncTransferFacilitator::SendMessage(outEvent);
if (err != CHIP_NO_ERROR)
{
// TODO: Should we abort transfer here or let the other side timeout
return;
}
}
else if (outEvent.EventType == TransferSession::OutputEventType::kInternalError ||
outEvent.EventType == TransferSession::OutputEventType::kTransferTimeout ||
outEvent.EventType == TransferSession::OutputEventType::kStatusReceived)
{
HandleTransferSessionOutput(outEvent);
CleanUp();
return;
AsyncTransferFacilitator::SendMessage(outEvent);
}
mTransfer.GetNextAction(outEvent);
};
Expand Down

0 comments on commit 4bbb9d9

Please sign in to comment.