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 } } }