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

Commit

Permalink
Windows: make uv_is_active work for poll handles
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 3, 2012
1 parent 7e8ab52 commit d48d256
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/win/handle.c
Expand Up @@ -64,6 +64,9 @@ int uv_is_active(const uv_handle_t* handle) {
case UV_CHECK:
return (handle->flags & UV_HANDLE_ACTIVE) ? 1 : 0;

case UV_POLL:
return ((uv_poll_t*) handle)->events != 0;

default:
return 1;
}
Expand Down

0 comments on commit d48d256

Please sign in to comment.