From 872263314eff8efa72bdccfbda89f9029425f4b0 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Tue, 1 Apr 2014 10:12:55 +0300 Subject: [PATCH] windows: fix check in uv_tty_endgame() --- src/win/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/tty.c b/src/win/tty.c index 1b17cb72..7840fb28 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -1815,7 +1815,7 @@ void uv_tty_close(uv_tty_t* handle) { void uv_tty_endgame(uv_loop_t* loop, uv_tty_t* handle) { - if (!(handle->flags && UV_HANDLE_TTY_READABLE) && + if (!(handle->flags & UV_HANDLE_TTY_READABLE) && handle->shutdown_req != NULL && handle->write_reqs_pending == 0) { UNREGISTER_HANDLE_REQ(loop, handle, handle->shutdown_req);