From 4a55522e9affe621a1a7f3fef8211b4a526ecc7b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 8 Apr 2013 01:32:38 +0200 Subject: [PATCH] unix: remove superfluous check in stream.c --- src/unix/stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index ad184582..901e7018 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -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.