We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7bcd33 commit c781025Copy full SHA for c781025
Sources/LiveViewNative/Coordinators/LiveSessionCoordinator.swift
@@ -213,7 +213,7 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
213
.merging(additionalHeaders ?? [:]) { $1 }
214
215
if let socket {
216
- try await socket.shutdown()
+ try? await socket.shutdown()
217
}
218
219
let adapter = ReconnectStrategyAdapter(self.configuration.reconnectBehavior)
@@ -360,7 +360,7 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
360
361
self.liveReloadChannel = nil
362
363
- try await self.socket?.shutdown()
+ try? await self.socket?.shutdown()
364
self.socket = nil
365
self.liveSocket = nil
366
self.state = .disconnected
0 commit comments