Fixed crash on destructing NotificationRequestPool

This commit is contained in:
ttsuki committed 2019-08-02 07:20:19 +09:00
1 parent 5799777c82
commit ee90cef6ee
1 file changed
+7
+7
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