diff options
Diffstat (limited to 'deps/uv/src/win/stream.c')
-rw-r--r-- | deps/uv/src/win/stream.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/deps/uv/src/win/stream.c b/deps/uv/src/win/stream.c index 46a0709a38..ebb5fe5cb7 100644 --- a/deps/uv/src/win/stream.c +++ b/deps/uv/src/win/stream.c @@ -65,18 +65,11 @@ int uv_accept(uv_stream_t* server, uv_stream_t* client) { } -int uv_read_start(uv_stream_t* handle, uv_alloc_cb alloc_cb, - uv_read_cb read_cb) { +int uv__read_start(uv_stream_t* handle, + uv_alloc_cb alloc_cb, + uv_read_cb read_cb) { int err; - if (handle->flags & UV_HANDLE_READING) { - return UV_EALREADY; - } - - if (!(handle->flags & UV_HANDLE_READABLE)) { - return UV_ENOTCONN; - } - err = ERROR_INVALID_PARAMETER; switch (handle->type) { case UV_TCP: |