ext/libuv/src/unix/stream.c in libuv-3.0.1 vs ext/libuv/src/unix/stream.c in libuv-3.1.0
- old
+ new
@@ -1219,11 +1219,10 @@
"uv_shutdown (unix) only supports uv_handle_t right now");
if (!(stream->flags & UV_STREAM_WRITABLE) ||
stream->flags & UV_STREAM_SHUT ||
stream->flags & UV_STREAM_SHUTTING ||
- stream->flags & UV_CLOSED ||
- stream->flags & UV_CLOSING) {
+ uv__is_closing(stream)) {
return -ENOTCONN;
}
assert(uv__stream_fd(stream) >= 0);