mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix overzealous assert
This commit is contained in:
parent
6ad5faad12
commit
91ec9ebf9d
|
@ -145,6 +145,10 @@ extension SSKWebSocketImpl: WebSocketDelegate {
|
|||
switch error {
|
||||
case let wsError as WSError:
|
||||
websocketError = SSKWebSocketError(underlyingError: wsError)
|
||||
case let nsError as NSError:
|
||||
let networkDownCode = 50
|
||||
assert(nsError.domain == "NSPOSIXErrorDomain" && nsError.code == networkDownCode)
|
||||
websocketError = error
|
||||
default:
|
||||
assert(error == nil, "unexpected error type: \(String(describing: error))")
|
||||
websocketError = error
|
||||
|
|
Loading…
Reference in a new issue