From b05b059379c5cb0116a7e272b0c6d10c30e0d7c4 Mon Sep 17 00:00:00 2001 From: Daniel Rochetti Date: Fri, 1 Dec 2023 13:46:54 -0800 Subject: [PATCH] fix: invalidate connection on fatal error --- Sources/FalClient/Realtime.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/FalClient/Realtime.swift b/Sources/FalClient/Realtime.swift index 063ec96..fcfe894 100644 --- a/Sources/FalClient/Realtime.swift +++ b/Sources/FalClient/Realtime.swift @@ -185,6 +185,7 @@ class WebSocketConnection: NSObject, URLSessionWebSocketDelegate { } case let .failure(error): self?.onError(error) + self?.task = nil } } }