Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

windows: a closing async watcher should not call it's callback

  • Loading branch information...
piscisaureus committed Apr 17, 2012
1 parent 20879c1 commit 13b8ebd7e676dd49e42b7888e0855f20739ceb4e
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/win/async.c
@@ -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.
You can’t perform that action at this time.