Don't use multi-catch try

This commit is contained in:
Steveice10 2012-09-02 23:18:13 -07:00
parent 9680f15d09
commit 7607ba30be

View file

@ -74,7 +74,11 @@ public class Server {
try {
Socket client = this.sock.accept();
connections.add(new ServerConnection(Server.this, client).connect());
} catch(IOException | ConnectException e) {
} catch(IOException e) {
Util.logger().severe("Failed to accept connection from client!");
e.printStackTrace();
continue;
} catch(ConnectException e) {
Util.logger().severe("Failed to accept connection from client!");
e.printStackTrace();
continue;