From ca2087a4734d91306dfe8bdf5a35fd003e9b6306 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 7 Nov 2016 18:10:50 +0100 Subject: DatagramPacket constructor doesn't throw SocketException in SE 8+ --- .../src/main/java/org/openslx/taskmanager/network/NetworkHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/src/main/java/org/openslx/taskmanager/network/NetworkHandler.java b/daemon/src/main/java/org/openslx/taskmanager/network/NetworkHandler.java index 5d98512..08a1d61 100644 --- a/daemon/src/main/java/org/openslx/taskmanager/network/NetworkHandler.java +++ b/daemon/src/main/java/org/openslx/taskmanager/network/NetworkHandler.java @@ -69,7 +69,7 @@ public class NetworkHandler implements Runnable final DatagramPacket packet; try { packet = new DatagramPacket( buffer, buffer.length, destination ); - } catch ( SocketException e ) { + } catch ( Exception e ) { log.warn( "Could not construct datagram packet for target " + destination.toString() ); e.printStackTrace(); return; -- cgit v1.2.3-55-g7522