From 8e987282368aa2eb03e3a9b80c3560015ce9a134 Mon Sep 17 00:00:00 2001 From: InNoobWeTrust Date: Tue, 27 Feb 2024 17:37:03 +0700 Subject: [PATCH] fix(nitro-node): wrongly return before spawning nitro process on Windows --- nitro-node/src/nitro.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nitro-node/src/nitro.ts b/nitro-node/src/nitro.ts index 7e4736611..f31fbe284 100644 --- a/nitro-node/src/nitro.ts +++ b/nitro-node/src/nitro.ts @@ -217,7 +217,7 @@ async function runNitroAndLoadModel( * The tested threshold is 500ms **/ if (process.platform === "win32") { - return await new Promise((resolve) => setTimeout(() => resolve({}), 500)); + await new Promise((resolve) => setTimeout(resolve, 500)); } await spawnNitroProcess(runMode); // TODO: Use this response?