mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-23 00:29:18 +00:00
sync: Terminate syncer connection before redis
This commit is contained in:
@@ -194,12 +194,12 @@ public class BukkitHuskSync extends JavaPlugin implements HuskSync, BukkitTask.S
|
|||||||
this.disabling = true;
|
this.disabling = true;
|
||||||
|
|
||||||
// Close the event listener / data syncer
|
// Close the event listener / data syncer
|
||||||
if (this.eventListener != null) {
|
|
||||||
this.eventListener.handlePluginDisable();
|
|
||||||
}
|
|
||||||
if (this.dataSyncer != null) {
|
if (this.dataSyncer != null) {
|
||||||
this.dataSyncer.terminate();
|
this.dataSyncer.terminate();
|
||||||
}
|
}
|
||||||
|
if (this.eventListener != null) {
|
||||||
|
this.eventListener.handlePluginDisable();
|
||||||
|
}
|
||||||
|
|
||||||
// Unregister API and cancel tasks
|
// Unregister API and cancel tasks
|
||||||
BukkitHuskSyncAPI.unregister();
|
BukkitHuskSyncAPI.unregister();
|
||||||
|
|||||||
Reference in New Issue
Block a user