mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 12:27:07 +02:00
Improve event emitter
This commit is contained in:
@@ -45,7 +45,7 @@ export function prestigeWorkerScripts() {
|
||||
killWorkerScript(ws);
|
||||
}
|
||||
|
||||
WorkerScriptStartStopEventEmitter.emitEvent();
|
||||
WorkerScriptStartStopEventEmitter.emit();
|
||||
workerScripts.clear();
|
||||
}
|
||||
|
||||
@@ -501,7 +501,7 @@ export function createAndAddWorkerScript(runningScriptObj, server, parent) {
|
||||
|
||||
// Add the WorkerScript to the global pool
|
||||
workerScripts.set(pid, s);
|
||||
WorkerScriptStartStopEventEmitter.emitEvent();
|
||||
WorkerScriptStartStopEventEmitter.emit();
|
||||
|
||||
// Start the script's execution
|
||||
let p = null; // Script's resulting promise
|
||||
|
||||
Reference in New Issue
Block a user