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:
parent
aac6e30ec9
commit
a8fc584ae4
|
@ -429,8 +429,12 @@ class Server<C extends Connection> extends EndPointServer {
|
||||||
|
|
||||||
// use Broadcast to see if there is a UDP server connected
|
// use Broadcast to see if there is a UDP server connected
|
||||||
if (config.udpPort > 0) {
|
if (config.udpPort > 0) {
|
||||||
List<BroadcastResponse> broadcastResponses = Broadcast.discoverHosts0(null, config.udpPort, 500, true);
|
List<BroadcastResponse> broadcastResponses = null;
|
||||||
|
try {
|
||||||
|
broadcastResponses = Broadcast.discoverHosts0(null, config.udpPort, 500, true);
|
||||||
return !broadcastResponses.isEmpty();
|
return !broadcastResponses.isEmpty();
|
||||||
|
} catch (IOException ignored) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user