Always notify all observers

This commit is contained in:
Nils Maier 2019-10-07 23:51:43 +02:00
parent 49a3f08a9a
commit abe9d82d03
2 changed files with 2 additions and 1 deletions

View File

@ -93,6 +93,7 @@ export class Manager extends EventEmitter {
this.ports.delete(mport);
});
this.ports.add(mport);
return true;
});
Limits.on("changed", () => {
this.resetScheduler();

View File

@ -104,7 +104,7 @@ export class EventEmitter {
for (const e of Array.from(handlers)) {
try {
// eslint-disable-next-line prefer-spread
handled = handled || !!e.apply(null, args);
handled = !!e.apply(null, args) || handled;
}
catch (ex) {
console.error(`Event handler ${e} for ${event} failed`, ex.toString(), ex.stack, ex);