- if (this.ready) {
- const emitPoolReadyEventOnce = once(
- () => this.emitter?.emit(PoolEvents.ready, this.info),
- this
- )
- emitPoolReadyEventOnce()
+ if (!this.readyEventEmitted && this.ready) {
+ this.readyEventEmitted = true
+ this.emitter?.emit(PoolEvents.ready, this.info)