Commit 85032b22 authored by me-no-dev's avatar me-no-dev

Do not break UDP if pbuf is null

parent e5ea089a
......@@ -132,7 +132,7 @@ static void _udp_task(void *pvParameters){
if(xQueueReceive(_udp_queue, &e, portMAX_DELAY) == pdTRUE){
if(!e->pb){
free((void*)(e));
break;
continue;
}
AsyncUDP::_s_recv(e->arg, e->pcb, e->pb, e->addr, e->port, e->netif);
free((void*)(e));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment