1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-08 19:44:06 +00:00

Fixed edge case bug, where if terminate flag was set, Windows Select loop may not unblock

This commit is contained in:
Bryan Roe
2020-08-11 02:26:29 -07:00
parent 0b51917e24
commit 42dcbc8e4d

View File

@@ -2037,6 +2037,7 @@ int ILibChain_WindowsSelect(void *chain, fd_set *readset, fd_set *writeset, fd_s
struct timeval currentTime;
struct timeval tv;
if (((ILibBaseChain*)chain)->TerminateFlag != 0) { waitTimeout = 0; }
if (waitListCount == 0)
{
SleepEx(waitTimeout, TRUE);