Permalink
Browse files

unix: remove stale closing check in uv__write()

Introduced in 0db3274 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.
  • Loading branch information...
1 parent a657e7f commit 775f2c1f539c783728f7e4dd039f5e6c6f794fb9 @bnoordhuis bnoordhuis committed Jan 2, 2013
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/unix/stream.c
View
@@ -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);

0 comments on commit 775f2c1

Please sign in to comment.