stop CLI UIs after client thread has been stopped

This commit is contained in:
Grische
2022-03-03 08:53:05 +00:00
committed by Sheepit Renderfarm
parent aef9ccc034
commit 45c23f4808
2 changed files with 4 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ public class GuiText implements Gui {
client.run(); client.run();
client.stop(); client.stop();
} }
// stop if there is no client or client has been stopped
this.stop();
} }
@Override public void stop() { @Override public void stop() {

View File

@@ -100,6 +100,8 @@ public class GuiTextOneLine implements Gui {
client.run(); client.run();
client.stop(); client.stop();
} }
// stop if there is no client or client has been stopped
this.stop();
} }
@Override public void stop() { @Override public void stop() {