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:
Spottedleaf
2025-09-03 14:20:11 -07:00
parent 65641d1006
commit 78aecfebaf
@@ -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