Fix instance exit notification

Fix improper notification on Factorio server exit causing plugins and
the instance tracking to fail.
This commit is contained in:
Hornwitser committed 2020-04-04 15:14:23 +02:00
1 parent 99ac8f4f33
commit 75cd6d38db
6 files changed
+33 -32

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ class InstancePlugin extends plugin.BaseInstancePlugin {
await this.instance.server.sendRcon(`/sc __subspace_storage__ UpdateInvData("${itemsJson}", true)`, true);
}
async onStop() {
onExit() {
clearInterval(this.pingId);
}