mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Fixed a couple of runtime issues introduced in commit 44efcd6
.
This commit is contained in:
parent
44efcd6196
commit
43bb340566
2 changed files with 5 additions and 2 deletions
|
@ -560,7 +560,7 @@ struct lws_context_per_thread {
|
|||
struct lws_pollfd *fds;
|
||||
volatile struct lws_foreign_thread_pollfd * volatile foreign_pfd_list;
|
||||
#ifdef _WIN32
|
||||
WSAEVENT *events;
|
||||
WSAEVENT events;
|
||||
#endif
|
||||
lws_sockfd_type dummy_pipe_fds[2];
|
||||
struct lws *pipe_wsi;
|
||||
|
|
|
@ -272,7 +272,7 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
|
|||
lws_pt_unlock(pt);
|
||||
}
|
||||
|
||||
ev = WSAWaitForMultipleEvents(1, pt->events, FALSE, timeout_ms, FALSE);
|
||||
ev = WSAWaitForMultipleEvents(1, &pt->events, FALSE, timeout_ms, FALSE);
|
||||
if (ev == WSA_WAIT_EVENT_0) {
|
||||
unsigned int eIdx, err;
|
||||
|
||||
|
@ -477,6 +477,9 @@ LWS_VISIBLE void
|
|||
lws_plat_delete_socket_from_fds(struct lws_context *context,
|
||||
struct lws *wsi, int m)
|
||||
{
|
||||
struct lws_context_per_thread *pt = &context->pt[(int)wsi->tsi];
|
||||
|
||||
pt->fds_count--;
|
||||
}
|
||||
|
||||
LWS_VISIBLE void
|
||||
|
|
Loading…
Add table
Reference in a new issue