mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
SF [2009349] Possible deadlock in AsyncChannel::close
This commit is contained in:
@@ -114,8 +114,9 @@ void AsyncChannel::close()
|
|||||||
if (_thread.isRunning())
|
if (_thread.isRunning())
|
||||||
{
|
{
|
||||||
while (!_queue.empty()) Thread::sleep(100);
|
while (!_queue.empty()) Thread::sleep(100);
|
||||||
_queue.wakeUpAll();
|
|
||||||
_thread.join();
|
do { _queue.wakeUpAll(); }
|
||||||
|
while (!_thread.tryJoin(100));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user