aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-08-03 22:35:32 +0000
committerLRN <lrn1986@gmail.com>2012-08-03 22:35:32 +0000
commit4183d2ea76ca0f9eca41ea46776361c41a362f96 (patch)
treed65efebdb0ccfeb8f093feab6f3c97fbfcdc1db0
parent40d283698c536d9e19c51f73163cdbb40ce5f2ca (diff)
downloadlibextractor-4183d2ea76ca0f9eca41ea46776361c41a362f96.tar.gz
libextractor-4183d2ea76ca0f9eca41ea46776361c41a362f96.zip
Return 1 when there's nothing to do
-rw-r--r--src/main/extractor_ipc_w32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/extractor_ipc_w32.c b/src/main/extractor_ipc_w32.c
index e8ed37d..69ceb1c 100644
--- 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,
707 c++; 707 c++;
708 } 708 }
709 709
710 if (c == 0)
711 return 1; /* nothing left to do! */
712
710 ms = 10000; 713 ms = 10000;
711 first_ready = WaitForMultipleObjects (c, events, FALSE, ms); 714 first_ready = WaitForMultipleObjects (c, events, FALSE, ms);
712 if (first_ready == WAIT_TIMEOUT || first_ready == WAIT_FAILED) 715 if (first_ready == WAIT_TIMEOUT || first_ready == WAIT_FAILED)