unix: remove superfluous check in stream.c
This commit is contained in:
parent
8ef07ccac7
commit
4a55522e9a
@ -484,8 +484,7 @@ void uv__server_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
|
||||
assert(stream->accepted_fd == -1);
|
||||
assert(!(stream->flags & UV_CLOSING));
|
||||
|
||||
if (stream->accepted_fd == -1)
|
||||
uv__io_start(stream->loop, &stream->io_watcher, UV__POLLIN);
|
||||
uv__io_start(stream->loop, &stream->io_watcher, UV__POLLIN);
|
||||
|
||||
/* connection_cb can close the server socket while we're
|
||||
* in the loop so check it on each iteration.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user