From fc45fa199a4a0e5e2f32ea5de52137f85129251e Mon Sep 17 00:00:00 2001 From: Karsten Sperling Date: Wed, 15 May 2024 11:30:31 +1200 Subject: [PATCH] Make AddToRetransTable in the wrong state non-fatal --- src/messaging/ReliableMessageMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messaging/ReliableMessageMgr.cpp b/src/messaging/ReliableMessageMgr.cpp index 4bc196c45510ea..c9178a03d1822d 100644 --- a/src/messaging/ReliableMessageMgr.cpp +++ b/src/messaging/ReliableMessageMgr.cpp @@ -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)