Browse Source

resolve sample promise always after ready

session-estimator
Mathias Buus 4 years ago
parent
commit
ec1c71c104
  1. 6
      index.js

6
index.js

@ -197,6 +197,12 @@ class DHT extends EventEmitter {
if (this.bootstrapped) return
this.bootstrapped = true
if (this._resolveSampled !== null) {
this._resolveSampled(true)
this._resolveSampled = null
}
this.emit('ready')
}

Loading…
Cancel
Save