mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-30 22:53:27 +01:00
Close messaging service before storage
Fixes https://www.spigotmc.org/threads/174259/page-129#post-3302827
This commit is contained in:
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user