Navigation Menu

Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: a closing async watcher should not call it's callback
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Apr 17, 2012
1 parent 20879c1 commit 13b8ebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/win/async.c
Expand Up @@ -118,10 +118,10 @@ void uv_process_async_wakeup_req(uv_loop_t* loop, uv_async_t* handle,
assert(req->type == UV_WAKEUP);

handle->async_sent = 0;
if (handle->async_cb) {

if (!(handle->flags & UV_HANDLE_CLOSING)) {
handle->async_cb((uv_async_t*) handle, 0);
}
if (handle->flags & UV_HANDLE_CLOSING) {
} else {
uv_want_endgame(loop, (uv_handle_t*)handle);
}
}

0 comments on commit 13b8ebd

Please sign in to comment.