1
0
Fork 0
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:
Andy Green 2021-10-15 19:06:15 +01:00
parent 81830a3979
commit 7e09e42472

View file

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