diff --git a/bitchat/Nostr/NostrRelayManager.swift b/bitchat/Nostr/NostrRelayManager.swift index c3f6c8e8..41d98c23 100644 --- a/bitchat/Nostr/NostrRelayManager.swift +++ b/bitchat/Nostr/NostrRelayManager.swift @@ -168,6 +168,11 @@ class NostrRelayManager: ObservableObject { return } + // Skip if we already have a connection object + if connections[urlString] != nil { + return + } + // Attempting to connect to Nostr relay let session = URLSession(configuration: .default)