Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: pass error to write callback in stream cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis authored and ry committed Sep 16, 2011
1 parent 4487531 commit 3c0684e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/stream.c
Expand Up @@ -129,8 +129,8 @@ void uv__stream_destroy(uv_stream_t* stream) {

req = ngx_queue_data(q, uv_write_t, queue);
if (req->cb) {
uv_err_new_artificial(req->handle->loop, UV_OK);
req->cb(req, 0);
uv_err_new_artificial(stream->loop, req->error);
req->cb(req, req->error ? -1 : 0);
}
}
}
Expand Down

0 comments on commit 3c0684e

Please sign in to comment.