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

Commit

Permalink
Windows: use UV__ACTIVE to determine return value of uv_is_active
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed May 15, 2012
1 parent 28a422b commit 0b7868b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/win/handle.c
Expand Up @@ -58,19 +58,7 @@ uv_handle_type uv_guess_handle(uv_file file) {


int uv_is_active(const uv_handle_t* handle) {
switch (handle->type) {
case UV_TIMER:
case UV_IDLE:
case UV_PREPARE:
case UV_CHECK:
return (handle->flags & UV_HANDLE_ACTIVE) ? 1 : 0;

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

default:
return 1;
}
return (handle->flags & UV__ACTIVE) && !(handle->flags & UV_HANDLE_CLOSING);
}


Expand Down

0 comments on commit 0b7868b

Please sign in to comment.