From dd1355da8dd5de14ff5174a4ab048bde593d4b8c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 2 Jun 2012 22:36:52 +0200 Subject: [PATCH] windows: stop poll watcher when watched socket is closed locally --- src/win/poll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win/poll.c b/src/win/poll.c index bc313cf4..55776f7a 100644 --- a/src/win/poll.c +++ b/src/win/poll.c @@ -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) {