Merge pull request #2490 from TheMas3212/fix-2440

Clear Netscript ports on augment install / soft reset / bitnode change
This commit is contained in:
hydroflame 2022-01-09 12:59:40 -05:00 committed by GitHub
commit b31517e402
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,6 +48,9 @@ export function prestigeWorkerScripts(): void {
ws.env.stopFlag = true;
killWorkerScript(ws);
}
for (const port of NetscriptPorts) {
port.clear();
}
WorkerScriptStartStopEventEmitter.emit();
workerScripts.clear();