diff --git a/src/index.ts b/src/index.ts index ffc618c..9b7ca85 100644 --- a/src/index.ts +++ b/src/index.ts @@ -356,8 +356,9 @@ export default class DHTCache extends EventEmitter { } } - this.emit("bootstrapped"); this.bootstrapped = true; + this.emit("bootstrapped"); + this._recalculate(); }