From 42dcbc8e4d947f25af5eb4a1996c06010ed3b3f0 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Tue, 11 Aug 2020 02:26:29 -0700 Subject: [PATCH] Fixed edge case bug, where if terminate flag was set, Windows Select loop may not unblock --- microstack/ILibParsers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/microstack/ILibParsers.c b/microstack/ILibParsers.c index a289b91..8e1b8e0 100644 --- a/microstack/ILibParsers.c +++ b/microstack/ILibParsers.c @@ -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);