diff --git a/index.js b/index.js index 444b24d..b6f3bb0 100644 --- a/index.js +++ b/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') }