Skip to content

Commit

Permalink
fix(nitro-node): wrongly return before spawning nitro process on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
InNoobWeTrust committed Feb 27, 2024
1 parent 131718b commit 8e98728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nitro-node/src/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 8e98728

Please sign in to comment.