*Set flag before event emit

This commit is contained in:
Derrick Hammer 2022-11-26 19:39:03 -05:00
parent 8959c644e3
commit b47502ac9d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -356,8 +356,9 @@ export default class DHTCache extends EventEmitter {
}
}
this.emit("bootstrapped");
this.bootstrapped = true;
this.emit("bootstrapped");
this._recalculate();
}