This commit is contained in:
2025-04-30 00:44:51 -07:00
parent e33b267977
commit 404a224bf1

View File

@@ -307,6 +307,7 @@ export class PeerManager {
// TODO: What do we do if we lose connection to the bootstrap peer? // TODO: What do we do if we lose connection to the bootstrap peer?
// If we have other connections, it probably doesn't matter. // If we have other connections, it probably doesn't matter.
// Eventually we want the bootstrap peer to be no different than any other peer anyway. // Eventually we want the bootstrap peer to be no different than any other peer anyway.
// We should disconnect from the websocket once we connect to our intial peers.
// If we have no peer connections, try to connect. If connection fails, start a timer to reconnect. // If we have no peer connections, try to connect. If connection fails, start a timer to reconnect.
if (remotePeerID === this.bootstrapPeerID) { if (remotePeerID === this.bootstrapPeerID) {