commit 4183d2ea76ca0f9eca41ea46776361c41a362f96
parent 40d283698c536d9e19c51f73163cdbb40ce5f2ca
Author: LRN <lrn1986@gmail.com>
Date: Fri, 3 Aug 2012 22:35:32 +0000
Return 1 when there's nothing to do
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/main/extractor_ipc_w32.c b/src/main/extractor_ipc_w32.c
@@ -707,6 +707,9 @@ EXTRACTOR_IPC_channel_recv_ (struct EXTRACTOR_Channel **channels,
c++;
}
+ if (c == 0)
+ return 1; /* nothing left to do! */
+
ms = 10000;
first_ready = WaitForMultipleObjects (c, events, FALSE, ms);
if (first_ready == WAIT_TIMEOUT || first_ready == WAIT_FAILED)