From 2e96e75dcff478be3e6ce93e9b1c6b4dfece0739 Mon Sep 17 00:00:00 2001 From: Florian Wetzel Date: Wed, 9 Oct 2024 15:57:42 +0200 Subject: [PATCH] Fix deadlock when sending and receiving udp --- src/asyncudplistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asyncudplistener.cpp b/src/asyncudplistener.cpp index c623184..fa8aa34 100644 --- a/src/asyncudplistener.cpp +++ b/src/asyncudplistener.cpp @@ -325,7 +325,7 @@ void AsyncUdpListener::_udp_task_post(udp_pcb *_pcb, pbuf *pb, const ip_addr_t * }}; auto ptr = e.get(); - if (const auto result = _udp_queue->send(&ptr, portMAX_DELAY); result != pdPASS) + if (const auto result = _udp_queue->send(&ptr, 0); result != pdPASS) { ESP_LOGE(TAG, "_udp_queue->send failed with %i", result); continue;