mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 00:23:12 +09:00
Fix missing onExit calls
Add missing calls to instance plugin onExit hooks.
This commit is contained in:
1 parent
8de3f54bc4
commit
026b7f1306
1 file changed
+10
@@ -236,6 +236,11 @@ class Instance extends link.Link{
|
|||||||
collector.removeAll({ instance_id: String(this.config.get("instance.id")) });
|
collector.removeAll({ instance_id: String(this.config.get("instance.id")) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notify plugins of exit
|
||||||
|
for (let pluginInstance of this.plugins.values()) {
|
||||||
|
await pluginInstance.onExit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async getMetricsRequestHandler() {
|
async getMetricsRequestHandler() {
|
||||||
@@ -274,6 +279,11 @@ class Instance extends link.Link{
|
|||||||
|
|
||||||
await this.server.create("world");
|
await this.server.create("world");
|
||||||
console.log("Clusterio | Successfully created save");
|
console.log("Clusterio | Successfully created save");
|
||||||
|
|
||||||
|
// Notify plugins of exit
|
||||||
|
for (let pluginInstance of this.plugins.values()) {
|
||||||
|
await pluginInstance.onExit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async stopInstanceRequestHandler() {
|
async stopInstanceRequestHandler() {
|
||||||
|
|||||||
Reference in new issue
Block a user