mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Rename master plugin onExit hook to onShutdown
Rename the onExit hook for master plugins to onShutdown to better reflect when it is invoked.
This commit is contained in:
1 parent
9507608e59
commit
61d92a6910
5 files changed
+8
-6
No files matched your search
@@ -12,7 +12,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
this.progressToBroadcast = new Set();
|
||||
}
|
||||
|
||||
async onExit() {
|
||||
async onShutdown() {
|
||||
if (this.progressBroadcastId) {
|
||||
clearTimeout(this.progressBroadcastId);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
async onExit() {
|
||||
async onShutdown() {
|
||||
clearInterval(this.autosaveId);
|
||||
clearInterval(this.doleMagicId);
|
||||
await saveDatabase(this.master.config, this.items);
|
||||
|
||||
Reference in new issue
Block a user