We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9c675b + d4e693e commit a5954ddCopy full SHA for a5954dd
components/mdns/mdns.c
@@ -5191,7 +5191,7 @@ static void _mdns_scheduler_run(void)
5191
MDNS_SERVICE_UNLOCK();
5192
return;
5193
}
5194
- if ((int32_t)(p->send_at - (xTaskGetTickCount() * portTICK_PERIOD_MS)) < 0) {
+ while (p && (int32_t)(p->send_at - (xTaskGetTickCount() * portTICK_PERIOD_MS)) < 0) {
5195
action = (mdns_action_t *)malloc(sizeof(mdns_action_t));
5196
if (action) {
5197
action->type = ACTION_TX_HANDLE;
@@ -5203,8 +5203,10 @@ static void _mdns_scheduler_run(void)
5203
5204
} else {
5205
HOOK_MALLOC_FAILED;
5206
- // continue
+ break;
5207
5208
+ //Find the next unqued packet
5209
+ p = p->next;
5210
5211
5212
0 commit comments