From 215031a1f3701211efed39eead0a916b248a1b20 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 7 Feb 2019 12:38:24 +0000 Subject: [PATCH] Close messaging service before storage Fixes https://www.spigotmc.org/threads/174259/page-129#post-3302827 --- .../common/plugin/AbstractLuckPermsPlugin.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java b/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java index 9473c2d5e..66d51718a 100644 --- a/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java +++ b/common/src/main/java/me/lucko/luckperms/common/plugin/AbstractLuckPermsPlugin.java @@ -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();