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:
parent
04d947b6f7
commit
5d025839c6
1 changed files with 3 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue