1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

windows: align plat insert socket POLLIN handling to linux

This is needed for, eg, libuv
This commit is contained in:
Andy Green 2021-07-09 09:31:10 +01:00
parent f708d09a3a
commit a4720b7dbc

View file

@ -200,6 +200,9 @@ lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi)
}
#endif
if (context->event_loop_ops->io)
context->event_loop_ops->io(wsi, LWS_EV_START | LWS_EV_READ);
pt->fds[pt->fds_count++].revents = 0;
lws_plat_change_pollfd(context, wsi, &pt->fds[pt->fds_count - 1]);