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;
}
} catch (Stop stop) {
if(stop.getMessage() != null) {
System.out.println("Connection stopped: " + stop.getMessage());
}
else {
System.out.println("Connection stopped");
}
}
try {
socket.close();
} catch (IOException e) {
}
System.out.println("Connection with " + socket + " ended");
socket.close();
} catch (IOException e) {
}
}).start();
}
serverSocket.close();