damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 754b47d693dc92d5f207e4577e81fe3657db07a9
parent 69f8bc9779e3b8919b0ae4eb77300cb02a849f13
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 28 Dec 2022 22:39:37 -0800

Fix crash when adding relays

Changelog-Fixed: Fix crash when adding relays

Diffstat:
Mdamus/Nostr/RelayPool.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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