From bd950edb810e8569de2a1edd76aff18811ef8918 Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 30 Apr 2022 15:17:34 -0400 Subject: [PATCH] Made wait crawler wait more restrictive --- scripts/crawler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/crawler.js b/scripts/crawler.js index ed8d735..cc41be5 100644 --- a/scripts/crawler.js +++ b/scripts/crawler.js @@ -80,7 +80,8 @@ export async function main(ns) { // Wait for script to finish if local if(!args['remoteExec']) - while(ns.scriptRunning(args['script'], localhost)) await ns.sleep(1000); + while(ns.isRunning(args['script'], localhost, ...scriptArgs)) + await ns.sleep(1000); complete.push(server); }