From e949b20c00ef89296b7a0ee58bacbf1081bc6b24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Valur=20J=C3=B3nsson?= Date: Thu, 31 Oct 2019 19:22:51 +0000 Subject: [PATCH] windows: service: do sul check and service regardless of service timeout --- lib/plat/windows/windows-service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plat/windows/windows-service.c b/lib/plat/windows/windows-service.c index 02ca34d59..aa79ee819 100644 --- a/lib/plat/windows/windows-service.c +++ b/lib/plat/windows/windows-service.c @@ -127,7 +127,10 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi) if (!lws_service_adjust_timeout(context, 1, tsi)) _lws_plat_service_forced_tsi(context, tsi); - if (timeout_us) { + /* + * service pending callbakcs and get maximum wait time + */ + { lws_usec_t us; lws_pt_lock(pt, __func__);