Make AsyncTCP yield each loop, to let other same-prio tasks get a turn

This commit is contained in:
Jonny 2025-08-07 09:12:14 +01:00
parent 5f23463914
commit de770144a2

View file

@ -228,6 +228,11 @@ void _asynctcpsock_task(void *)
sockList.clear(); sockList.clear();
xSemaphoreGiveRecursive(_asyncsock_mutex); xSemaphoreGiveRecursive(_asyncsock_mutex);
// Battery-Emulator modification: Yield so that other same-priority
// tasks on the same core get a turn, otherwise heavy HTTP traffic will
// exclude them.
taskYIELD();
} }
vTaskDelete(NULL); vTaskDelete(NULL);