unix: make assertion message more descriptive
This commit is contained in:
parent
8e3e60ffbf
commit
c931e31746
@ -953,7 +953,8 @@ static void uv__read(uv_stream_t* stream) {
|
||||
stream->read2_cb((uv_pipe_t*)stream, -1, buf, UV_UNKNOWN_HANDLE);
|
||||
}
|
||||
|
||||
assert(!uv__io_active(&stream->io_watcher, UV__POLLIN));
|
||||
assert(!uv__io_active(&stream->io_watcher, UV__POLLIN) &&
|
||||
"stream->read_cb(status=-1) did not call uv_close()");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user