From dbe681ed2fe2e020f579458d8b9126e483514d67 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 2 Jun 2012 03:05:19 +0200 Subject: [PATCH] windows/tty: never report error after forcibly aborting line-buffered read --- 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 601bf5ed..df7ae289 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -688,7 +688,7 @@ void uv_process_tty_read_line_req(uv_loop_t* loop, uv_tty_t* handle, if (!REQ_SUCCESS(req)) { /* Read was not successful */ if ((handle->flags & UV_HANDLE_READING) && - !(handle->flags & UV_HANDLE_TTY_RAW)) { + handle->read_line_handle != NULL) { /* Real error */ handle->flags &= ~UV_HANDLE_READING; uv__set_sys_error(loop, GET_REQ_ERROR(req));