From a464b61d39043d319b8e4cbb80349fd8e2ccc77f Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Wed, 16 Jul 2025 01:41:23 +0100 Subject: [PATCH] Remove redundant status check --- packages/host/src/Instance.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/host/src/Instance.ts b/packages/host/src/Instance.ts index cd9985d2..0a47c0b2 100644 --- a/packages/host/src/Instance.ts +++ b/packages/host/src/Instance.ts @@ -1302,9 +1302,6 @@ end`.replace(/\r?\n/g, " "); } async handleInstanceRestartRequest(request: lib.InstanceRestartRequest) { - if (this._status !== "running") { - throw new Error("Instance is not running"); - } await this.stop(); // Stopping invalidates this instance object, a new one must be created by the host // To do this we simulate a waking an instance and sending a start request