summaryrefslogtreecommitdiff
path: root/deps/uv/src/win/threadpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/src/win/threadpool.c')
-rw-r--r--deps/uv/src/win/threadpool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/uv/src/win/threadpool.c b/deps/uv/src/win/threadpool.c
index 4fb20d34bc..e066810d53 100644
--- a/deps/uv/src/win/threadpool.c
+++ b/deps/uv/src/win/threadpool.c
@@ -61,13 +61,13 @@ int uv_queue_work(uv_loop_t* loop, uv_work_t* req, uv_work_cb work_cb,
return -1;
}
- uv_ref(loop);
+ uv__req_register(loop, req);
return 0;
}
void uv_process_work_req(uv_loop_t* loop, uv_work_t* req) {
assert(req->after_work_cb);
+ uv__req_unregister(loop, req);
req->after_work_cb(req);
- uv_unref(loop);
}