From a3963883b81ec2c2612511ff3fa885b2944d8457 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 18 Apr 2013 02:55:15 +0200 Subject: [PATCH] windows: remove superfluous assert statement --- src/win/core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/win/core.c b/src/win/core.c index 9680c7e5..62d6bf8f 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -205,9 +205,7 @@ static void uv_poll(uv_loop_t* loop, int block) { if (overlapped) { /* Package was dequeued */ req = uv_overlapped_to_req(overlapped); - uv_insert_pending_req(loop, req); - } else if (GetLastError() != WAIT_TIMEOUT) { /* Serious error */ uv_fatal_error(GetLastError(), "GetQueuedCompletionStatus"); @@ -229,14 +227,13 @@ static void uv_poll_ex(uv_loop_t* loop, int block) { timeout = 0; } - assert(pGetQueuedCompletionStatusEx); - success = pGetQueuedCompletionStatusEx(loop->iocp, overlappeds, ARRAY_SIZE(overlappeds), &count, timeout, FALSE); + if (success) { for (i = 0; i < count; i++) { /* Package was dequeued */