mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
eventloop: windows: ssl: remove spin
This commit is contained in:
parent
8fe3950acd
commit
c92d9f9c5d
1 changed files with 3 additions and 2 deletions
|
@ -41,11 +41,12 @@ _lws_plat_service_forced_tsi(struct lws_context *context, int tsi)
|
||||||
if (!pt->fds[n].revents)
|
if (!pt->fds[n].revents)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
unsigned int fds_count = pt->fds_count;
|
||||||
m = lws_service_fd_tsi(context, &pt->fds[n], tsi);
|
m = lws_service_fd_tsi(context, &pt->fds[n], tsi);
|
||||||
if (m < 0)
|
if (m < 0)
|
||||||
return -1;
|
return -1;
|
||||||
/* if something closed, retry this slot */
|
/* if something closed, fds_count will change, retry this slot */
|
||||||
if (m)
|
if (pt->fds_count != fds_count)
|
||||||
n--;
|
n--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue