From 8878af39f99f8e84682c3127e6a25e2ce0b66742 Mon Sep 17 00:00:00 2001 From: Frank May Date: Sun, 19 Aug 2018 06:43:23 +0800 Subject: [PATCH] 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. --- lib/plat/lws-plat-win.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/plat/lws-plat-win.c b/lib/plat/lws-plat-win.c index 751d4af90..6844936f7 100644 --- a/lib/plat/lws-plat-win.c +++ b/lib/plat/lws-plat-win.c @@ -244,12 +244,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[0]); } /*