unix: remove superfluous check in stream.c

This commit is contained in:
Ben Noordhuis 2013-04-08 01:32:38 +02:00
parent 8ef07ccac7
commit 4a55522e9a

View File

@ -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.