mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
freertos: no need to freak out if service_adjust_to is 0
If lws_s_a_t() is zero, there's a path where n stays -1 from its declaration and we return -1.
This commit is contained in:
parent
826b221e38
commit
06bc1d8971
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
|
|||
* is there anybody with pending stuff that needs service forcing?
|
||||
*/
|
||||
again:
|
||||
n = 0;
|
||||
if (lws_service_adjust_timeout(context, 1, tsi)) {
|
||||
|
||||
a = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue