From 831b15a47c8fd04da38399872bc0c5ec0a7d70cc Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Tue, 9 Aug 2011 17:35:18 +0200 Subject: [PATCH] Windows: fix WaitNamedPipe thread bug --- src/win/pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/pipe.c b/src/win/pipe.c index 1f8e2da2..db2aa508 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -317,8 +317,6 @@ static DWORD WINAPI pipe_connect_thread_proc(void* parameter) { uv_fatal_error(GetLastError(), "PostQueuedCompletionStatus"); } - handle->reqs_pending++; - return 0; } @@ -363,6 +361,8 @@ int uv_pipe_connect(uv_connect_t* req, uv_pipe_t* handle, goto error; } + handle->reqs_pending++; + return 0; }