mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 00:51:30 +10:00
fix(rak4631_eth_gw): handle multicast socket exhaustion (#11132)
This commit is contained in:
@@ -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
|
||||
#endif // HAS_ETHERNET
|
||||
|
||||
Reference in New Issue
Block a user