windows align lws_service_fd return processing with unix
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
dc6e47cafc
commit
dd6aaa898f
1 changed files with 4 additions and 1 deletions
|
@ -164,7 +164,10 @@ lws_plat_service(struct lws_context *context, int timeout_ms)
|
|||
pfd->revents = LWS_POLLOUT;
|
||||
n = lws_service_fd(context, pfd);
|
||||
if (n < 0)
|
||||
return n;
|
||||
return -1;
|
||||
/* if something closed, retry this slot */
|
||||
if (n)
|
||||
i--;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue