stream_wrap: remove bogus assert
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.
This commit is contained in:
parent
b9165252e3
commit
1bf6d78980
@ -200,7 +200,6 @@ void StreamWrap::OnReadCommon(uv_stream_t* handle,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(buf.base != NULL);
|
|
||||||
wrap->callbacks_->DoRead(handle, nread, buf, pending);
|
wrap->callbacks_->DoRead(handle, nread, buf, pending);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user