Merge branch 'devel' of https://github.com/pocoproject/poco into devel

This commit is contained in:
Alex Fabijanic 2022-06-29 12:43:41 +02:00
commit 7a2f2e0ac7

View File

@ -138,7 +138,11 @@ void SocketReactor::stop()
void SocketReactor::wakeUp()
{
if (_pThread) _pThread->wakeUp();
if (_pThread && _pThread != Thread::current())
{
_pThread->wakeUp();
_pollSet.wakeUp();
}
}