*Prune graph on node disconnect

This commit is contained in:
Derrick Hammer 2022-11-27 02:12:21 -05:00
parent 1404c2b073
commit 9350daee68
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -263,6 +263,7 @@ export default class DHTCache extends EventEmitter {
this._removeEntityConnection(id, b4a.from(toId as Uint8Array) as Buffer);
this.emit("peer-remove-seen", id, toId);
this._recalculate();
this._pruneItems();
} else if (type === Type.BOOTSTRAP_REQUEST) {
const bootstrap = this._getBootstrapInfo();
this.broadcast(