diff --git a/src/index.ts b/src/index.ts index 15f801c..5c6a6a2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;