mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Merge pull request #2490 from TheMas3212/fix-2440
Clear Netscript ports on augment install / soft reset / bitnode change
This commit is contained in:
commit
b31517e402
@ -48,6 +48,9 @@ export function prestigeWorkerScripts(): void {
|
|||||||
ws.env.stopFlag = true;
|
ws.env.stopFlag = true;
|
||||||
killWorkerScript(ws);
|
killWorkerScript(ws);
|
||||||
}
|
}
|
||||||
|
for (const port of NetscriptPorts) {
|
||||||
|
port.clear();
|
||||||
|
}
|
||||||
|
|
||||||
WorkerScriptStartStopEventEmitter.emit();
|
WorkerScriptStartStopEventEmitter.emit();
|
||||||
workerScripts.clear();
|
workerScripts.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user