mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
eventloop: windows: ssl: remove spin
This commit is contained in:
parent
fe107059fc
commit
754d2b4578
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)
|
||||
continue;
|
||||
|
||||
unsigned int fds_count = pt->fds_count;
|
||||
m = lws_service_fd_tsi(context, &pt->fds[n], tsi);
|
||||
if (m < 0)
|
||||
return -1;
|
||||
/* if something closed, retry this slot */
|
||||
if (m)
|
||||
/* if something closed, fds_count will change, retry this slot */
|
||||
if (pt->fds_count != fds_count)
|
||||
n--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue