mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
freertos-service: remove cruft
This can't be reached currently, so remove it and simplify the setting of c to the exact equivalent.
This commit is contained in:
parent
b45dfcb81e
commit
3ef446f27c
1 changed files with 1 additions and 9 deletions
|
@ -191,15 +191,7 @@ again:
|
|||
a = 1;
|
||||
|
||||
m = lws_service_flag_pending(context, tsi);
|
||||
if (m)
|
||||
c = -1; /* unknown limit */
|
||||
else
|
||||
if (n < 0) {
|
||||
if (LWS_ERRNO != LWS_EINTR)
|
||||
return -1;
|
||||
return 0;
|
||||
} else
|
||||
c = n;
|
||||
c = m ? -1 : n;
|
||||
|
||||
/* any socket with events to service? */
|
||||
for (n = 0; n < (int)pt->fds_count && c; n++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue