Cleanup old async commands patch (#8895)

This commit is contained in:
SoSeDiK
2023-09-17 01:54:33 +03:00
parent a624543c95
commit 2dbdaa6b88
7 changed files with 85 additions and 177 deletions

View File

@@ -443,7 +443,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+ // Looks stalled, close async
org.spigotmc.AsyncCatcher.enabled = false; // Spigot
org.spigotmc.AsyncCatcher.shuttingDown = true; // Paper
+ server.forceTicks = true;
this.server.close();
+ while (!server.hasFullyShutdown) Thread.sleep(1000);
@@ -517,7 +516,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
{
- RestartCommand.restart();
+ AsyncCatcher.enabled = false; // Disable async catcher incase it interferes with us
+ AsyncCatcher.shuttingDown = true;
+ server.forceTicks = true;
+ if (restart) {
+ RestartCommand.addShutdownHook( SpigotConfig.restartScript );