File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Sources/LiveViewNative/Coordinators Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,10 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
216
216
try ? await socket. shutdown ( )
217
217
}
218
218
219
+ if let liveReloadChannel {
220
+ try ? await liveReloadChannel. shutdownParentSocket ( )
221
+ }
222
+
219
223
let adapter = ReconnectStrategyAdapter ( self . configuration. reconnectBehavior)
220
224
221
225
self . liveSocket = try await LiveSocket (
@@ -287,7 +291,7 @@ public class LiveSessionCoordinator<R: RootRegistry>: ObservableObject {
287
291
func overrideLiveReloadChannel( channel: LiveChannel ) async throws {
288
292
289
293
if let liveReloadChannel {
290
- try await liveReloadChannel. shutdownParentSocket ( )
294
+ try ? await liveReloadChannel. shutdownParentSocket ( )
291
295
self . liveReloadChannel = nil
292
296
}
293
297
You can’t perform that action at this time.
0 commit comments