From 6d9e68a65b88b9587b6bf4366abb873635e4e152 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 8 Oct 2023 23:02:27 +0100 Subject: [PATCH] sync: Terminate syncer connection before redis --- .../main/java/net/william278/husksync/BukkitHuskSync.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bukkit/src/main/java/net/william278/husksync/BukkitHuskSync.java b/bukkit/src/main/java/net/william278/husksync/BukkitHuskSync.java index 40c0d999..8c44f263 100644 --- a/bukkit/src/main/java/net/william278/husksync/BukkitHuskSync.java +++ b/bukkit/src/main/java/net/william278/husksync/BukkitHuskSync.java @@ -194,12 +194,12 @@ public class BukkitHuskSync extends JavaPlugin implements HuskSync, BukkitTask.S this.disabling = true; // Close the event listener / data syncer - if (this.eventListener != null) { - this.eventListener.handlePluginDisable(); - } if (this.dataSyncer != null) { this.dataSyncer.terminate(); } + if (this.eventListener != null) { + this.eventListener.handlePluginDisable(); + } // Unregister API and cancel tasks BukkitHuskSyncAPI.unregister();