*Bug fix heartbeat math

This commit is contained in:
Derrick Hammer 2022-12-05 14:32:03 -05:00
parent 09b0e25f6e
commit 28eb7ac2d6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ export default class DHTCache extends EventEmitter {
const conn = this.swarm._allConnections.get(pubkey);
const online =
conn && heartbeat > 0 && Date.now() - heartbeat > 60 * 1000;
conn && heartbeat > 0 && Date.now() - heartbeat <= 60 * 1000;
if (node?.online !== online) {
changed = true;