Update BitchatApp.swift

Co-authored-by: asmo <asmogo@protonmail.com>
This commit is contained in:
jack 2025-09-11 16:42:13 +02:00 committed by GitHub
parent 10be302854
commit 789bbf6862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,6 +68,7 @@ struct BitchatApp: App {
}
// Proactively disconnect Nostr to avoid spurious socket errors while Tor is down
NostrRelayManager.shared.disconnect()
didEnterBackground = true
break
case .active:
// Restart services when becoming active