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

windows: Remove useless code

WSASetEvent(pt->events) just makes WSAWaitForMultipleEvents()
return, it will not set LWS_POLLOUT in pfd->revents and thus
has IMHO no effect. If WSAWaitForMultipleEvents() will set
LWS_POLLOUT it will also signal the event automatically.
This commit is contained in:
Frank May 2018-08-19 06:43:23 +08:00 committed by Andy Green
parent e17820cf67
commit 248826d7fc

View file

@ -93,12 +93,6 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
/* if something closed, retry this slot */
if (n)
i--;
/*
* any wsi has truncated, force him signalled
*/
if (wsi->trunc_len)
WSASetEvent(pt->events);
}
/*