send disconnect packet
All checks were successful
Linux arm64 / Build (push) Successful in 38s

This commit is contained in:
2025-02-02 23:13:56 +01:00
parent 08ed9b46b1
commit c3610c47c9

View File

@@ -31,6 +31,7 @@ public class ClientConnexion extends Connexion {
public void close() {
if (!this.isClosed()) {
super.close();
sendPacket(new DisconnectPacket(""));
client.onDisconnect.emit();
}
}