Fixed crash on destructing NotificationRequestPool

This commit is contained in:
ttsuki
2019-08-02 06:27:29 +09:00
parent 5799777c82
commit ee90cef6ee

View File

@@ -107,6 +107,13 @@ void NotificationRequestPool::operator()()
continue;
}
// handles are closed...?
if (ret == WAIT_FAILED)
{
// exits function (terminates thread)
break;
}
// index of the request which just got completed
const auto index = ret - WAIT_OBJECT_0;
// grab associated request