mooore stuff
Some checks failed
Linux arm64 / Build (push) Failing after 5m5s

This commit is contained in:
2025-01-26 13:46:23 +01:00
parent caf7011f08
commit e51cc23459
20 changed files with 395 additions and 65 deletions

View File

@@ -20,9 +20,14 @@ public abstract class Connexion implements PacketVisitor {
this.connexionThread.start();
}
public void sendPacket(Packet packet) {
public boolean isClosed() {
return this.socket.isClosed();
}
public synchronized void sendPacket(Packet packet) {
try {
objectOutputStream.writeObject(packet);
objectOutputStream.flush();
} catch (IOException e) {
System.err.println("Error while sending packet ! " + e.getLocalizedMessage());
close();