mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 16:22:56 +02:00
Improve event emitter
This commit is contained in:
@@ -1359,7 +1359,7 @@ function NetscriptFunctions(workerScript) {
|
||||
for (let i = server.runningScripts.length - 1; i >= 0; --i) {
|
||||
killWorkerScript(server.runningScripts[i], server.ip, false);
|
||||
}
|
||||
WorkerScriptStartStopEventEmitter.emitEvent();
|
||||
WorkerScriptStartStopEventEmitter.emit();
|
||||
workerScript.log(
|
||||
"killall",
|
||||
`Killing all scripts on '${server.hostname}'. May take a few minutes for the scripts to die.`,
|
||||
|
||||
Reference in New Issue
Block a user