From 66ecc2538d89f532283ea2ca60c5790a92f0dee3 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 10 Dec 2014 10:28:46 +0800 Subject: [PATCH] NO_EXTENSION clean out handled var in handle_POLLOUT_event Signed-off-by: Andy Green --- lib/service.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/service.c b/lib/service.c index 7b7a4fb6..f905a605 100644 --- a/lib/service.c +++ b/lib/service.c @@ -55,7 +55,6 @@ lws_handle_POLLOUT_event(struct libwebsocket_context *context, #endif int ret; int m; - int handled = 0; /* pending truncated sends have uber priority */ @@ -112,7 +111,7 @@ lws_handle_POLLOUT_event(struct libwebsocket_context *context, m = lws_ext_callback_for_each_active(wsi, LWS_EXT_CALLBACK_IS_WRITEABLE, NULL, 0); #ifndef LWS_NO_EXTENSIONS - if (!wsi->extension_data_pending || handled == 2) + if (!wsi->extension_data_pending) goto user_service; #endif /*