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

Commit

Permalink
windows: stop poll watcher when watched socket is closed locally
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 2, 2012
1 parent 1cd9642 commit dd1355d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/win/poll.c
Expand Up @@ -186,6 +186,7 @@ static void uv__fast_poll_process_poll_req(uv_loop_t* loop, uv_poll_t* handle,
if (afd_poll_info->Handles[0].Events & AFD_POLL_LOCAL_CLOSE) {
/* Stop polling. */
handle->events = 0;
uv__handle_stop(handle);
}

if (events != 0) {
Expand Down

0 comments on commit dd1355d

Please sign in to comment.