windows: fix req refcount for uv_pipe_connect

This commit is contained in:
Igor Zinkovsky 2011-08-05 17:41:31 -07:00
parent 4ca89308b6
commit cc143317b1
2 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,7 @@ void uv_process_endgames();
#define DECREASE_PENDING_REQ_COUNT(handle) \
do { \
assert(handle->reqs_pending > 0); \
handle->reqs_pending--; \
\
if (handle->flags & UV_HANDLE_CLOSING && \

View File

@ -317,6 +317,8 @@ static DWORD WINAPI pipe_connect_thread_proc(void* parameter) {
uv_fatal_error(GetLastError(), "PostQueuedCompletionStatus");
}
handle->reqs_pending++;
return 0;
}