actually exitOnExit

This commit is contained in:
Snarling 2022-09-01 08:37:59 -04:00
parent 1be015898c
commit 137f58c36d

@ -836,7 +836,7 @@ const base: InternalAPI<NS> = {
},
exit: (ctx: NetscriptContext) => (): never => {
helpers.log(ctx, () => "Exiting...");
ctx.workerScript.env.stopFlag = true;
killWorkerScript(ctx.workerScript);
throw new ScriptDeath(ctx.workerScript);
},
scp: