Fix missing onExit calls

Add missing calls to instance plugin onExit hooks.
This commit is contained in:
Hornwitser committed 2020-04-02 19:56:39 +02:00
1 parent 8de3f54bc4
commit 026b7f1306
1 file changed
+10
+10
View File
@@ -236,6 +236,11 @@ class Instance extends link.Link{
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() {
@@ -274,6 +279,11 @@ class Instance extends link.Link{
await this.server.create("world");
console.log("Clusterio | Successfully created save");
// Notify plugins of exit
for (let pluginInstance of this.plugins.values()) {
await pluginInstance.onExit();
}
}
async stopInstanceRequestHandler() {