Skip to content

Commit c781025

Browse files
shutdown as well
1 parent c7bcd33 commit c781025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/LiveViewNative/Coordinators/LiveSessionCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
213213
.merging(additionalHeaders ?? [:]) { $1 }
214214

215215
if let socket {
216-
try await socket.shutdown()
216+
try? await socket.shutdown()
217217
}
218218

219219
let adapter = ReconnectStrategyAdapter(self.configuration.reconnectBehavior)
@@ -360,7 +360,7 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
360360

361361
self.liveReloadChannel = nil
362362

363-
try await self.socket?.shutdown()
363+
try? await self.socket?.shutdown()
364364
self.socket = nil
365365
self.liveSocket = nil
366366
self.state = .disconnected

0 commit comments

Comments
 (0)