UPnP: Catch AssertionError when closing SSDP multicast socket

Reported on Windows 10
ref: http://zzz.i2p/topics/3500
This commit is contained in:
zzz
2022-12-30 05:33:10 -05:00
parent dcb8009c63
commit f7d134066d

View File

@@ -186,10 +186,12 @@ public class HTTPMUSocket
try {
ssdpMultiSock.leaveGroup(ssdpMultiGroup, ssdpMultiIf);
ssdpMultiSock.close();
ssdpMultiSock.close();
ssdpMultiSock = null;
}
catch (Exception e) {
} catch (Throwable e) {
// I2P was Exception
// Oracle 19 Windows 10
// java.lang.AssertionError: java.net.BindException: Cannot assign requested address: no further information
//Debug.warning(e);
return false;
}