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