Fix creash on dongle reconnect

This commit is contained in:
Niellune
2025-05-28 10:40:57 +03:00
parent ec60651004
commit e16b5d4af3
+3
View File
@@ -396,6 +396,9 @@ void Connector::write_loop()
cv.wait_for(lock, std::chrono::seconds(2), [&]()
{ return !_active.load(); });
}
if(_read_thread.joinable())
_read_thread.join();
}
std::unique_lock<std::mutex> lock(mtx);
cv.wait_for(lock, std::chrono::seconds(1), [&]()