From 5b9259d16612d82ec23a9997600c847579441dd5 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Fri, 8 Aug 2025 21:44:32 +0100 Subject: [PATCH] Fix server ups using incorrect exit hook --- exp_server_ups/instance.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exp_server_ups/instance.ts b/exp_server_ups/instance.ts index 80457d82..9cbe1e63 100644 --- a/exp_server_ups/instance.ts +++ b/exp_server_ups/instance.ts @@ -9,7 +9,7 @@ export class InstancePlugin extends BaseInstancePlugin { this.updateInterval = setInterval(this.updateUps.bind(this), this.instance.config.get("exp_server_ups.update_interval")); } - async onStop() { + onExit() { if (this.updateInterval) { clearInterval(this.updateInterval); } @@ -17,7 +17,7 @@ export class InstancePlugin extends BaseInstancePlugin { async onInstanceConfigFieldChanged(field: string, curr: unknown): Promise { if (field === "exp_server_ups.update_interval") { - await this.onStop(); + this.onExit(); await this.onStart(); } else if (field === "exp_server_ups.average_interval") { this.gameTimes.splice(curr as number);