Merge pull request #1 from CommanderRedYT/patch-1

Fix deadlock when sending and receiving udp
This commit is contained in:
2024-10-09 15:58:38 +02:00
committed by GitHub

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;