Skip to content

Commit 0e28141

Browse files
vtjnashcjihrig
authored andcommitted
unix: remove incorrect assertion in uv_shutdown()
It isn't necessary, and doesn't agree with the printed message. PR-URL: #1620 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent d708df1 commit 0e28141

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/unix/stream.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,8 +1261,9 @@ static void uv__read(uv_stream_t* stream) {
12611261

12621262

12631263
int uv_shutdown(uv_shutdown_t* req, uv_stream_t* stream, uv_shutdown_cb cb) {
1264-
assert((stream->type == UV_TCP || stream->type == UV_NAMED_PIPE) &&
1265-
"uv_shutdown (unix) only supports uv_handle_t right now");
1264+
assert(stream->type == UV_TCP ||
1265+
stream->type == UV_TTY ||
1266+
stream->type == UV_NAMED_PIPE);
12661267

12671268
if (!(stream->flags & UV_STREAM_WRITABLE) ||
12681269
stream->flags & UV_STREAM_SHUT ||

0 commit comments

Comments
 (0)