Merge pull request #6 from ttsuki/issue/ViGEmClient/fix-NotificationRequestPool

Fixed crash on destructing NotificationRequestPool
This commit is contained in:
Jason Hart
2019-08-16 08:06:10 -04:00
committed by GitHub

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