windows: fix check in uv_tty_endgame()

This commit is contained in:
Maks Naumov 2014-04-01 10:12:55 +03:00
parent e7fdab1fd9
commit 872263314e

View File

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