windows: fix req refcount for uv_pipe_connect
This commit is contained in:
parent
4ca89308b6
commit
cc143317b1
@ -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 && \
|
||||
|
||||
@ -317,6 +317,8 @@ static DWORD WINAPI pipe_connect_thread_proc(void* parameter) {
|
||||
uv_fatal_error(GetLastError(), "PostQueuedCompletionStatus");
|
||||
}
|
||||
|
||||
handle->reqs_pending++;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user