Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created October 6, 2011 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/b68bd1f8cdd443b2fa1e to your computer and use it in GitHub Desktop.
Save bnoordhuis/b68bd1f8cdd443b2fa1e to your computer and use it in GitHub Desktop.
diff --git a/deps/uv/src/unix/stream.c b/deps/uv/src/unix/stream.c
index 0268158..08d8da9 100644
--- a/deps/uv/src/unix/stream.c
+++ b/deps/uv/src/unix/stream.c
@@ -566,6 +566,7 @@ static void uv__read(uv_stream_t* stream) {
if (stream->read_cb) {
stream->read_cb(stream, nread, buf);
+ return;
} else {
assert(stream->read2_cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment