unix: reset the reading flag when a stream gets EOF
PR-URL: https://github.com/libuv/libuv/pull/47 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
db6ba5b28c
commit
b1bb9053a5
@ -951,6 +951,7 @@ static void uv__stream_eof(uv_stream_t* stream, const uv_buf_t* buf) {
|
||||
uv__handle_stop(stream);
|
||||
uv__stream_osx_interrupt_select(stream);
|
||||
stream->read_cb(stream, UV_EOF, buf);
|
||||
stream->flags &= ~UV_STREAM_READING;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user