summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-11-07 18:10:50 +0100
committerSimon Rettberg2016-11-07 18:10:50 +0100
commitca2087a4734d91306dfe8bdf5a35fd003e9b6306 (patch)
treee48d94a053faa15db0617a05c46426ae59adc94a
parent[SystemCommandTask] Return 124 as exit code on timeout (diff)
downloadtaskman-lite-ca2087a4734d91306dfe8bdf5a35fd003e9b6306.tar.gz
taskman-lite-ca2087a4734d91306dfe8bdf5a35fd003e9b6306.tar.xz
taskman-lite-ca2087a4734d91306dfe8bdf5a35fd003e9b6306.zip
DatagramPacket constructor doesn't throw SocketException in SE 8+
-rw-r--r--daemon/src/main/java/org/openslx/taskmanager/network/NetworkHandler.java2
1 files changed, 1 insertions, 1 deletions
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;