Close messaging service before storage
Fixes https://www.spigotmc.org/threads/174259/page-129#post-3302827
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user