Skip to content

Commit

Permalink
remove extra exchangeContext cleanup (#6334)
Browse files Browse the repository at this point in the history
Summary of Changes:
-- Reset would do exchange cleanup, remove extra ClearExistingExchangeContext
  • Loading branch information
yunhanw-google authored and pull[bot] committed Sep 14, 2021
1 parent 84edba7 commit 5691b3e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/CommandSender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ void CommandSender::OnMessageReceived(Messaging::ExchangeContext * apExchangeCon
goto exit;
}

// Close the current exchange after receiving the response since the response message marks the
// end of conversation represented by the exchange. We should create an new exchange for a new
// conversation defined in Interaction Model protocol.
ClearExistingExchangeContext();

err = ProcessCommandMessage(std::move(aPayload), CommandRoleId::SenderId);
SuccessOrExit(err);

Expand Down

0 comments on commit 5691b3e

Please sign in to comment.