From fa87730e7a02e4b2781e527829c46244d22e2098 Mon Sep 17 00:00:00 2001 From: Giacomo Di Ciocco <54034335+gdiciocco@users.noreply.github.com> Date: Mon, 10 Aug 2026 22:49:40 +0200 Subject: [PATCH] fix(rak4631_eth_gw): handle multicast socket exhaustion (#11132) --- src/platform/nrf52/AsyncUDP.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/nrf52/AsyncUDP.cpp b/src/platform/nrf52/AsyncUDP.cpp index 8c937d71f..5431597c5 100644 --- a/src/platform/nrf52/AsyncUDP.cpp +++ b/src/platform/nrf52/AsyncUDP.cpp @@ -8,8 +8,9 @@ bool AsyncUDP::listenMulticast(IPAddress multicastIP, uint16_t port, uint8_t ttl { if (!isMulticast(multicastIP)) return false; + if (!udp.beginMulticast(multicastIP, port)) + return false; localPort = port; - udp.beginMulticast(multicastIP, port); return true; } @@ -80,4 +81,4 @@ int32_t AsyncUDP::runOnce() return 5; // check every 5ms } -#endif // HAS_ETHERNET \ No newline at end of file +#endif // HAS_ETHERNET