mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +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
|
// remove any hooks into the platform
|
||||||
removePlatformHooks();
|
removePlatformHooks();
|
||||||
|
|
||||||
|
// close messaging service
|
||||||
|
if (this.messagingService != null) {
|
||||||
|
getLogger().info("Closing messaging service...");
|
||||||
|
this.messagingService.close();
|
||||||
|
}
|
||||||
|
|
||||||
// close storage
|
// close storage
|
||||||
getLogger().info("Closing storage...");
|
getLogger().info("Closing storage...");
|
||||||
this.storage.shutdown();
|
this.storage.shutdown();
|
||||||
@ -204,12 +210,6 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
|
|||||||
this.fileWatcher.close();
|
this.fileWatcher.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// close messaging service
|
|
||||||
if (this.messagingService != null) {
|
|
||||||
getLogger().info("Closing messaging service...");
|
|
||||||
this.messagingService.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
// unregister api
|
// unregister api
|
||||||
ApiRegistrationUtil.unregisterProvider();
|
ApiRegistrationUtil.unregisterProvider();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user