From 2ce720c6dba643cf486d19c7aa1b5678aa64eda1 Mon Sep 17 00:00:00 2001 From: twosee Date: Fri, 28 May 2021 23:11:23 +0800 Subject: [PATCH] poll,win: UV_PRIORITIZED option should not assert PR-URL: https://github.com/libuv/libuv/pull/3171 Reviewed-By: Jameson Nash --- src/win/poll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/poll.c b/src/win/poll.c index 87858590c..9d3775960 100644 --- a/src/win/poll.c +++ b/src/win/poll.c @@ -488,7 +488,8 @@ static int uv__poll_set(uv_poll_t* handle, int events, uv_poll_cb cb) { assert(handle->type == UV_POLL); assert(!(handle->flags & UV_HANDLE_CLOSING)); - assert((events & ~(UV_READABLE | UV_WRITABLE | UV_DISCONNECT)) == 0); + assert((events & ~(UV_READABLE | UV_WRITABLE | UV_DISCONNECT | + UV_PRIORITIZED)) == 0); handle->events = events; handle->poll_cb = cb;