sync: Terminate syncer connection before redis

feat/data-edit-commands
William 1 year ago
parent 2c33f3b0b4
commit 6d9e68a65b
No known key found for this signature in database

@ -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();

Loading…
Cancel
Save