diff --git a/protocol/src/main/java/org/screamingsandals/bedwars/game/remote/protocol/sockets/SimpleSocketServer.java b/protocol/src/main/java/org/screamingsandals/bedwars/game/remote/protocol/sockets/SimpleSocketServer.java index bfa1171c5..535b19e66 100644 --- a/protocol/src/main/java/org/screamingsandals/bedwars/game/remote/protocol/sockets/SimpleSocketServer.java +++ b/protocol/src/main/java/org/screamingsandals/bedwars/game/remote/protocol/sockets/SimpleSocketServer.java @@ -27,6 +27,7 @@ import java.io.BufferedInputStream; import java.io.DataInputStream; import java.io.DataOutputStream; +import java.io.EOFException; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; @@ -135,7 +136,9 @@ public void run() { } } catch (IOException e) { - throw new RuntimeException(e); + if (!(e instanceof EOFException)) { // Mute EOF + throw new RuntimeException(e); + } } finally { System.out.println("Client " + identifier + " disconnected"); clients.remove(identifier);