mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
Fix creash on dongle reconnect
This commit is contained in:
@@ -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), [&]()
|
||||
|
||||
Reference in New Issue
Block a user