mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
Unify error handling
This commit is contained in:
@@ -62,7 +62,8 @@ function stopAndCleanUpWorkerScript(ws: WorkerScript): void {
|
|||||||
//Clean up any ongoing netscriptDelay
|
//Clean up any ongoing netscriptDelay
|
||||||
if (ws.delay) clearTimeout(ws.delay);
|
if (ws.delay) clearTimeout(ws.delay);
|
||||||
ws.delayReject?.(new ScriptDeath(ws));
|
ws.delayReject?.(new ScriptDeath(ws));
|
||||||
|
ws.env.runningFn = "";
|
||||||
|
|
||||||
if (typeof ws.atExit === "function") {
|
if (typeof ws.atExit === "function") {
|
||||||
try {
|
try {
|
||||||
ws.env.stopFlag = false;
|
ws.env.stopFlag = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user