From 85032b226c7775bae510e954112823a2ae32181a Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Wed, 26 Sep 2018 23:29:51 +0200 Subject: [PATCH] Do not break UDP if pbuf is null --- libraries/AsyncUDP/src/AsyncUDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AsyncUDP/src/AsyncUDP.cpp b/libraries/AsyncUDP/src/AsyncUDP.cpp index fcbc55f83..313d7ed4a 100644 --- a/libraries/AsyncUDP/src/AsyncUDP.cpp +++ b/libraries/AsyncUDP/src/AsyncUDP.cpp @@ -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)); -- GitLab