Skip to content

Commit

Permalink
Make AddToRetransTable in the wrong state non-fatal (#33461)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksperling-apple authored May 15, 2024
1 parent 517d5cb commit 61dd4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messaging/ReliableMessageMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void ReliableMessageMgr::Timeout(System::Layer * aSystemLayer, void * aAppState)

CHIP_ERROR ReliableMessageMgr::AddToRetransTable(ReliableMessageContext * rc, RetransTableEntry ** rEntry)
{
VerifyOrDie(!rc->IsWaitingForAck());
VerifyOrReturnError(!rc->IsWaitingForAck(), CHIP_ERROR_INCORRECT_STATE);

*rEntry = mRetransTable.CreateObject(rc);
if (*rEntry == nullptr)
Expand Down

0 comments on commit 61dd4f7

Please sign in to comment.