*Skip self

This commit is contained in:
Derrick Hammer 2022-12-05 15:03:53 -05:00
parent 4d6f9a81d5
commit 5b2d1a3c7c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -423,6 +423,10 @@ export default class DHTCache extends EventEmitter {
}
for (const id of online) {
if (b4a.equals(b4a.from(id, "hex"), this.id)) {
continue;
}
const item = this.graph.node.get(id);
if (!item?.online) {
online.delete(id);