From 248826d7fc091466e654148a10750aaa9da7b8ba 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/windows/windows-service.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/plat/windows/windows-service.c b/lib/plat/windows/windows-service.c index 0fb67855c..9422a0b29 100644 --- a/lib/plat/windows/windows-service.c +++ b/lib/plat/windows/windows-service.c @@ -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); } /*