Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
stream_wrap: remove bogus assert
Browse files Browse the repository at this point in the history
Libuv may provide a NULL buffer to the uv_read callback in case of an
error, so with this assert we'd be using the api incorrectly. None of
the current DoRead implementations rely on this constraint, either.
  • Loading branch information
piscisaureus committed Jun 17, 2013
1 parent b916525 commit 1bf6d78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/stream_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle,
}
}

assert(buf.base != NULL);
wrap->callbacks_->DoRead(handle, nread, buf, pending);
}

Expand Down

0 comments on commit 1bf6d78

Please sign in to comment.