1
0
Fork 0
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:
Mykola Stryebkov 2022-06-14 05:37:52 +01:00 committed by Andy Green
parent fe107059fc
commit 754d2b4578

View file

@ -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--;
}