Browse Source

Fix crash when adding relays

Changelog-Fixed: Fix crash when adding relays
post-button-style
William Casarin 2 years ago
parent
commit
754b47d693
  1. 2
      damus/Nostr/RelayPool.swift

2
damus/Nostr/RelayPool.swift

@ -190,6 +190,6 @@ class RelayPool {
func add_rw_relay(_ pool: RelayPool, _ url: String) { func add_rw_relay(_ pool: RelayPool, _ url: String) {
let url_ = URL(string: url)! let url_ = URL(string: url)!
try! pool.add_relay(url_, info: RelayInfo.rw) try? pool.add_relay(url_, info: RelayInfo.rw)
} }

Loading…
Cancel
Save