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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user