mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
SF [2009349] Possible deadlock in AsyncChannel::close
This commit is contained in:
parent
690c231a1a
commit
4e2a3f7013
@ -114,8 +114,9 @@ void AsyncChannel::close()
|
||||
if (_thread.isRunning())
|
||||
{
|
||||
while (!_queue.empty()) Thread::sleep(100);
|
||||
_queue.wakeUpAll();
|
||||
_thread.join();
|
||||
|
||||
do { _queue.wakeUpAll(); }
|
||||
while (!_thread.tryJoin(100));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user