Server shutdown now tries harder to make sure the server is actually shutdown when aborting. Can also check UDP servers now

This commit is contained in:
nathan 2019-01-25 16:16:03 +01:00
parent aac6e30ec9
commit a8fc584ae4

View File

@ -429,8 +429,12 @@ class Server<C extends Connection> extends EndPointServer {
// use Broadcast to see if there is a UDP server connected
if (config.udpPort > 0) {
List<BroadcastResponse> broadcastResponses = Broadcast.discoverHosts0(null, config.udpPort, 500, true);
return !broadcastResponses.isEmpty();
List<BroadcastResponse> broadcastResponses = null;
try {
broadcastResponses = Broadcast.discoverHosts0(null, config.udpPort, 500, true);
return !broadcastResponses.isEmpty();
} catch (IOException ignored) {
}
}
return false;