Fix deadlock when sending and receiving udp

This commit is contained in:
Florian Wetzel
2024-10-09 15:57:42 +02:00
committed by GitHub
parent 2ff4a6a093
commit 2e96e75dcf

View File

@ -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;