Skip to content

Commit

Permalink
🗨️: fix listPeers trying to send getClients without trackerId
Browse files Browse the repository at this point in the history
  • Loading branch information
linusha committed Dec 12, 2023
1 parent 3de6d41 commit 1c231bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lively.2lively/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ export default class L2LClient extends L2LConnection {

if (!force && _peersCached && t - _peersCached.timestamp < timeout) { return this._peersCached.sessions; }

if (!this.isOnline()) return [];
if (!this.isRegistered()) return [];

const { data } = await this.sendToAndWait(this.trackerId, 'getClients', {});
const sessions = data.map(([id, record]) => {
Expand Down

0 comments on commit 1c231bb

Please sign in to comment.