DeviceReattacher: use provided ioThread; not mrntt directly

This commit is contained in:
2025-10-31 08:56:38 -04:00
parent 109cd9eb03
commit a68143810e
+4 -4
View File
@@ -37,10 +37,10 @@ void DeviceReattacher::stop()
shouldContinue.store(false);
timer.cancel();
// Set up a timeout bridge using Marionette thread's io_service
auto& mrnttIoService = ComponentThread::getMrntt()->getIoService();
boost::asio::deadline_timer timeoutTimer(mrnttIoService);
AsynchronousBridge bridge(mrnttIoService);
// Set up a timeout bridge using the provided ioThread's io_service
auto& ioService = ioThread->getIoService();
boost::asio::deadline_timer timeoutTimer(ioService);
AsynchronousBridge bridge(ioService);
// Set up the timeout for ~10ms
timeoutTimer.expires_from_now(boost::posix_time::milliseconds(20));