diff --git a/static/App.js b/static/App.js index 050deaa..64daf94 100644 --- a/static/App.js +++ b/static/App.js @@ -177,8 +177,6 @@ export class App { continue; } console.log.apply(null, log(`[app] calling getPostIDsForUser for user [${logID(userID)}] on peer [${logID(sendingPeerID)}]`)); - this.statusBar.updatePeerStatus(sendingPeerID, `getPostIDs(${logID(userID)})⬆️`); - let postIDs = await this.peerManager?.rpc.getPostIDsForUser(sendingPeerID, userID); this.statusBar.updatePeerStatus(sendingPeerID, `syncing(${logID(userID)} ${postIDs.length})`); console.log.apply(null, log(`[app] Got (${postIDs.length}) post IDs for user [${logID(userID)}] from peer [${logID(sendingPeerID)}]`)); diff --git a/static/PeerManager.js b/static/PeerManager.js index 87b6ade..d1c447b 100644 --- a/static/PeerManager.js +++ b/static/PeerManager.js @@ -163,7 +163,7 @@ export class PeerManager { this.eventListeners = new Map(); this.reconnectPeriod = 10; this.messageSuperlog = false; - this.watchdogInterval = 0; + this.watchdogInterval = null; this.reconnectTimer = null; this.peerStateSuperlog = true; // async watchdog() { @@ -693,9 +693,9 @@ PeerConnection.config = { { urls: "stun:ddln.app" }, // { urls: "turn:ddln.app", username: "a", credential: "b" }, { urls: "stun:stun.l.google.com" }, // keeping this for now as my STUN server is not returning ipv6 - // { urls: "stun:stun1.l.google.com" }, - // { urls: "stun:stun2.l.google.com" }, - // { urls: "stun:stun3.l.google.com" }, - // { urls: "stun:stun4.l.google.com" }, + { urls: "stun:stun1.l.google.com" }, + { urls: "stun:stun2.l.google.com" }, + { urls: "stun:stun3.l.google.com" }, + { urls: "stun:stun4.l.google.com" }, ], };