From 775f2c1f539c783728f7e4dd039f5e6c6f794fb9 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 2 Jan 2013 17:47:37 +0100 Subject: [PATCH] unix: remove stale closing check in uv__write() Introduced in 0db3274f but no longer necessary; uv__write() no longer runs when the handle has been closed. Write callbacks receive a special status code that informs them that the handle has been closed. --- src/unix/stream.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/unix/stream.c b/src/unix/stream.c index 68a5b9e0..f1510f9d 100644 --- a/src/unix/stream.c +++ b/src/unix/stream.c @@ -670,13 +670,6 @@ static void uv__write(uv_stream_t* stream) { int iovcnt; ssize_t n; - if (stream->flags & UV_CLOSING) { - /* Handle was closed this tick. We've received a stale - * 'is writable' callback from the event loop, ignore. - */ - return; - } - start: assert(uv__stream_fd(stream) >= 0);