mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Unify error handling
This commit is contained in:
parent
ba1a10b4f7
commit
0e67fbee21
@ -62,6 +62,7 @@ function stopAndCleanUpWorkerScript(ws: WorkerScript): void {
|
||||
//Clean up any ongoing netscriptDelay
|
||||
if (ws.delay) clearTimeout(ws.delay);
|
||||
ws.delayReject?.(new ScriptDeath(ws));
|
||||
ws.env.runningFn = "";
|
||||
|
||||
if (typeof ws.atExit === "function") {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user