network bug workaround test

This commit is contained in:
Sen 2025-05-21 18:45:45 +02:00
parent f6b2fdf422
commit 41fae1317f
4 changed files with 13 additions and 2 deletions

View file

@ -1613,6 +1613,7 @@ public class Client implements IThreadListener {
}
catch (Exception exception)
{
Log.SYSTEM.error(exception, "Fehler beim sofortigen Ausführen von Render-Task " + callableToSchedule);
return Futures.immediateFailedFuture(exception);
}
}
@ -2577,7 +2578,7 @@ public class Client implements IThreadListener {
Client.this.soundManager.stopSounds();
}
});
this.registerDebug(Keysym.Q, "Programm sofort beenden und speichern", new DebugRunner() {
this.registerDebug(Keysym.Q, "Programm sofort beenden und trennen", new DebugRunner() {
public void execute(Keysym key) {
Client.this.interrupted = true;
}
@ -2617,6 +2618,13 @@ public class Client implements IThreadListener {
}
}
});
this.registerDebug(Keysym.AE, "Programm sofort beenden und server beenden", new DebugRunner() {
public void execute(Keysym key) {
if(Client.this.player != null)
Client.this.player.client.addToSendQueue(new CPacketMessage(CPacketMessage.Type.COMMAND, "shutdown"));
Client.this.interrupted = true;
}
});
}
private boolean handleDebugKey(Keysym key) {