1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

windows: fix WSA event destruction

pt->events became an array
This commit is contained in:
casey 2020-10-08 17:02:43 -04:00 committed by Andy Green
parent 63a47081fb
commit d945699791

View file

@ -115,7 +115,9 @@ lws_plat_context_early_destroy(struct lws_context *context)
int n = context->count_threads;
while (n--) {
WSACloseEvent(pt->events);
int m;
for (m = 0; m < WSA_MAXIMUM_WAIT_EVENTS; m++)
WSACloseEvent(pt->events[m]);
DeleteCriticalSection(&pt->interrupt_lock);
pt++;
}