SF [2009349] Possible deadlock in AsyncChannel::close

This commit is contained in:
Aleksandar Fabijanic 2008-07-03 10:19:00 +00:00
parent 690c231a1a
commit 4e2a3f7013

View File

@ -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));
}
}