From 59e55de9ca20efb368697f2fc99c705985200d34 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Fri, 15 Jul 2022 02:11:06 -0400 Subject: [PATCH] fix all function being async lmao --- src/NetscriptWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptWorker.ts b/src/NetscriptWorker.ts index 3da118d76..c0a779a8a 100644 --- a/src/NetscriptWorker.ts +++ b/src/NetscriptWorker.ts @@ -73,7 +73,7 @@ function startNetscript2Script(player: IPlayer, workerScript: WorkerScript): Pro function wrap(propName: string, f: (...args: unknown[]) => Promise): (...args: unknown[]) => Promise { // This function unfortunately cannot be an async function, because we don't // know if the original one was, and there's no way to tell. - return async function (...args: unknown[]) { + return function (...args: unknown[]) { // Wrap every netscript function with a check for the stop flag. // This prevents cases where we never stop because we are only calling // netscript functions that don't check this.