Skip to content

Commit

Permalink
fix: 监听器数量限制
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuk1ko committed Dec 16, 2022
1 parent 557a3d6 commit b309fd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/emitter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { EventEmitter } from 'events';
class CqpsEventEmitter extends EventEmitter {
constructor() {
super();
this.setMaxListeners(0);
this.configReady = false;
this.once('configReady', () => (this.configReady = true));
}
Expand Down

0 comments on commit b309fd2

Please sign in to comment.