From 2666273b222838f9b8776fb40f8f9969c56e2c0f Mon Sep 17 00:00:00 2001 From: Kevin Schoedel <67607049+kpschoedel@users.noreply.github.com> Date: Thu, 2 Dec 2021 13:25:13 -0500 Subject: [PATCH] Fix build conflict (#12487) #### Problem bf383b38f4d070bfd5967b64f6e289835224b08d #11937 landed with a form changed a few minutes earlier by e2e4c17f2761cacbaa2173ee9016089488e5a248 #12420 #### Change overview Fix return values. #### Testing Build & CI --- src/protocols/secure_channel/CASESessionCache.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/protocols/secure_channel/CASESessionCache.cpp b/src/protocols/secure_channel/CASESessionCache.cpp index a50ff1ad00ceb6..75cffdcfa901c6 100644 --- a/src/protocols/secure_channel/CASESessionCache.cpp +++ b/src/protocols/secure_channel/CASESessionCache.cpp @@ -25,7 +25,7 @@ CASESessionCache::~CASESessionCache() { mCachePool.ForEachActiveObject([&](auto * ec) { mCachePool.ReleaseObject(ec); - return true; + return Loop::Continue; }); } @@ -39,7 +39,7 @@ CASESessionCachable * CASESessionCache::GetLRUSession() minTimeStamp = ec->mSessionSetupTimeStamp; lruSession = ec; } - return true; + return Loop::Continue; }); return lruSession; } @@ -68,7 +68,7 @@ CHIP_ERROR CASESessionCache::Remove(ResumptionID resumptionID) { mCachePool.ReleaseObject(ec); } - return true; + return Loop::Continue; }); return err; @@ -83,9 +83,9 @@ CHIP_ERROR CASESessionCache::Get(ResumptionID resumptionID, CASESessionCachable { found = true; outSessionCachable = *ec; - return false; + return Loop::Break; } - return true; + return Loop::Continue; }); if (!found)