From 22a4cf283e13937be376598f7b5d5e966bf4c99c Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Wed, 10 Jun 2026 04:13:25 -0400 Subject: [PATCH] These should always run on caller's thread. --- smocore/deviceManager/deviceReattacher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smocore/deviceManager/deviceReattacher.cpp b/smocore/deviceManager/deviceReattacher.cpp index 73c8294..7575dc9 100644 --- a/smocore/deviceManager/deviceReattacher.cpp +++ b/smocore/deviceManager/deviceReattacher.cpp @@ -118,7 +118,8 @@ void DeviceReattacher::stop() daemonTimer.cancel(); taskNursery.requestCancelOnAll(); taskNursery.closeAdmission(); - taskNursery.syncAwaitAllSettlements(ioThread->getIoContext()); + taskNursery.syncAwaitAllSettlements( + sscl::ComponentThread::getSelf()->getIoContext()); } } // namespace device