damus

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

commit 6eb548a0a9916900c67747a36d9f068e15d3261b
parent bcaa1d2354649b89c47277cecde55cc57cc7ca73
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 20 Jun 2023 11:21:21 +0200

Fix reconnect loop issues on iOS17

Changelog-Fixed: Fix reconnect loop issues on iOS17

Diffstat:
Mdamus/Nostr/RelayConnection.swift | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/damus/Nostr/RelayConnection.swift b/damus/Nostr/RelayConnection.swift @@ -132,6 +132,11 @@ final class RelayConnection: ObservableObject { } case .error(let error): print("⚠️ Warning: RelayConnection (\(self.url)) error: \(error)") + let nserr = error as NSError + if nserr.domain == NSPOSIXErrorDomain && nserr.code == 57 { + // ignore socket not connected? + return + } DispatchQueue.main.async { self.isConnected = false self.isConnecting = false