format, lint, remove unused "running" property on ws

This commit is contained in:
Snarling
2022-08-27 22:32:48 -04:00
parent 6f36e9cdc5
commit ef1f376c09
6 changed files with 8 additions and 35 deletions
-2
View File
@@ -745,7 +745,6 @@ const base: InternalAPI<NS> = {
helpers.log(ctx, () => `Will execute '${scriptname}' in ${spawnDelay} seconds`);
ctx.workerScript.running = false; // Prevent workerScript from "finishing execution naturally"
if (killWorkerScript(ctx.workerScript)) {
helpers.log(ctx, () => "Exiting...");
}
@@ -820,7 +819,6 @@ const base: InternalAPI<NS> = {
return scriptsKilled > 0;
},
exit: (ctx: NetscriptContext) => (): void => {
ctx.workerScript.running = false; // Prevent workerScript from "finishing execution naturally"
if (killWorkerScript(ctx.workerScript)) {
helpers.log(ctx, () => "Exiting...");
} else {