From 429bd2a349dad8dd497219f6ee85783fcc1aabb4 Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Tue, 16 Sep 2025 15:10:28 -0400 Subject: [PATCH] Exc: Replace with cb+ret --- smocore/body/body.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smocore/body/body.cpp b/smocore/body/body.cpp index 3fe9381..87d5899 100644 --- a/smocore/body/body.cpp +++ b/smocore/body/body.cpp @@ -177,8 +177,10 @@ void Body::finalizeReq(bodyLifetimeMgmtOpCbFn callback) if (mrntt->id != ComponentThread::MRNTT) { - throw std::runtime_error(std::string(__func__) - + ": Must be invoked by Mrntt thread"); + std::cerr << __func__ << ": Must be invoked by Mrntt thread" + << std::endl; + callback(false); + return; } if (!parent.bodyComponentInitialized)