Clear Netscript ports on augment install / soft reset / bitnode change

This commit is contained in:
TheMas3212 2022-01-09 13:43:52 +11:00
parent 0de588ee17
commit 440d9e4978
No known key found for this signature in database
GPG Key ID: 62A173A4FDA683CA

@ -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();