mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Add missing resetting of the service_tid on Windows
This commit is contained in:
parent
0fc37b64f6
commit
0bf8fe51bf
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue