unix: make assertion message more descriptive

This commit is contained in:
Ben Noordhuis 2013-01-14 11:32:54 +01:00
parent 8e3e60ffbf
commit c931e31746

View File

@ -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;
}