windows: stop poll watcher when watched socket is closed locally

This commit is contained in:
Bert Belder 2012-06-02 22:36:52 +02:00
parent 1cd9642cbb
commit dd1355da8d

View File

@ -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) {