Made wait crawler wait more restrictive

This commit is contained in:
Zakary Timson 2022-04-30 15:17:34 -04:00
parent 1f0810e507
commit bd950edb81

View File

@ -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);
}