Close messaging service before storage

Fixes https://www.spigotmc.org/threads/174259/page-129#post-3302827
This commit is contained in:
Luck
2019-02-07 12:38:24 +00:00
Unverified
parent 85d2f0b51f
commit 215031a1f3
@@ -195,6 +195,12 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
// remove any hooks into the platform
removePlatformHooks();
// close messaging service
if (this.messagingService != null) {
getLogger().info("Closing messaging service...");
this.messagingService.close();
}
// close storage
getLogger().info("Closing storage...");
this.storage.shutdown();
@@ -204,12 +210,6 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
this.fileWatcher.close();
}
// close messaging service
if (this.messagingService != null) {
getLogger().info("Closing messaging service...");
this.messagingService.close();
}
// unregister api
ApiRegistrationUtil.unregisterProvider();