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:
parent
f708d09a3a
commit
a4720b7dbc
1 changed files with 3 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue