Add missing resetting of the service_tid on Windows

This commit is contained in:
Patrick Gansterer 2014-03-29 09:34:24 +01:00
parent 0fc37b64f6
commit 0bf8fe51bf

View file

@ -1540,6 +1540,8 @@ libwebsocket_service(struct libwebsocket_context *context, int timeout_ms)
}
ev = WSAWaitForMultipleEvents(context->fds_count + 1, context->events, FALSE, timeout_ms, FALSE);
context->service_tid = 0;
if (ev == WSA_WAIT_TIMEOUT) {
libwebsocket_service_fd(context, NULL);
return 0;