Remote Connections shouldn't hold up shutdown

Bugs in the connection logic appears to leave stale connections even, preventing shutdown
This commit is contained in:
Aikar
2020-03-31 03:50:42 -04:00
parent 1273cf0f21
commit a44dc35353
2 changed files with 26 additions and 2 deletions

View File

@@ -250,8 +250,17 @@
@Override
public boolean isSpawningMonsters() {
return this.settings.getProperties().spawnMonsters && super.isSpawningMonsters();
@@ -293,6 +403,7 @@
this.queryThreadGs4.stop();
@@ -286,13 +396,14 @@
}
if (this.rconThread != null) {
- this.rconThread.stop();
+ this.rconThread.stopNonBlocking(); // Paper - don't wait for remote connections
}
if (this.queryThreadGs4 != null) {
- this.queryThreadGs4.stop();
+ // this.remoteStatusListener.stop(); // Paper - don't wait for remote connections
}
+ System.exit(0); // CraftBukkit