Do not break UDP if pbuf is null

This commit is contained in:
me-no-dev 2018-09-26 23:29:51 +02:00
parent e5ea089a7f
commit 85032b226c

View File

@ -132,7 +132,7 @@ static void _udp_task(void *pvParameters){
if(xQueueReceive(_udp_queue, &e, portMAX_DELAY) == pdTRUE){ if(xQueueReceive(_udp_queue, &e, portMAX_DELAY) == pdTRUE){
if(!e->pb){ if(!e->pb){
free((void*)(e)); free((void*)(e));
break; continue;
} }
AsyncUDP::_s_recv(e->arg, e->pcb, e->pb, e->addr, e->port, e->netif); AsyncUDP::_s_recv(e->arg, e->pcb, e->pb, e->addr, e->port, e->netif);
free((void*)(e)); free((void*)(e));