Do not remove plugin chunk tickets on shutdown
The chunk system may not be responsive in a shutdown (i.e watchdog timeout). Therefore, we should avoid interacting with the chunk system to increase the odds of a graceful shutdown.
This commit is contained in:
+4
-2
@@ -311,8 +311,10 @@ class PaperPluginInstanceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (World world : this.server.getWorlds()) {
|
if (!this.server.isStopping()) {
|
||||||
world.removePluginChunkTickets(plugin);
|
for (World world : this.server.getWorlds()) {
|
||||||
|
world.removePluginChunkTickets(plugin);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
this.handlePluginException("Error occurred (in the plugin loader) while removing chunk tickets for " + pluginName + " (Is it up to date?)", ex, plugin); // Paper
|
this.handlePluginException("Error occurred (in the plugin loader) while removing chunk tickets for " + pluginName + " (Is it up to date?)", ex, plugin); // Paper
|
||||||
|
|||||||
Reference in New Issue
Block a user