less log spam

This commit is contained in:
Daniella / Tove 2022-07-29 17:34:07 +02:00
parent 1cea71d3ea
commit c34eabcb4d

View file

@ -93,18 +93,11 @@ public class Server {
break; break;
} }
} catch (Stop stop) { } catch (Stop stop) {
if(stop.getMessage() != null) {
System.out.println("Connection stopped: " + stop.getMessage());
}
else {
System.out.println("Connection stopped");
}
} }
try { try {
socket.close(); socket.close();
} catch (IOException e) { } catch (IOException e) {
} }
System.out.println("Connection with " + socket + " ended");
}).start(); }).start();
} }
serverSocket.close(); serverSocket.close();