mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Don't use multi-catch try
This commit is contained in:
parent
9680f15d09
commit
7607ba30be
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue