mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-25 15:42:28 +01:00
fix bad scritp not dying properly
This commit is contained in:
parent
a6d7f93111
commit
b0739f8942
34
dist/vendor.bundle.js
vendored
34
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -531,13 +531,6 @@ export function createAndAddWorkerScript(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the WorkerScript is no longer "running", then this means its execution was
|
|
||||||
// already stopped somewhere else (maybe by something like exit()). This prevents
|
|
||||||
// the script from being cleaned up twice
|
|
||||||
if (w === undefined || !w.running) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
killWorkerScript(s);
|
killWorkerScript(s);
|
||||||
w.log("", "Script finished running");
|
w.log("", "Script finished running");
|
||||||
}).catch(function (w) {
|
}).catch(function (w) {
|
||||||
|
Loading…
Reference in New Issue
Block a user