Skip to content

Commit 454ea89

Browse files
committed
Fix speed of onClose await
1 parent aadec28 commit 454ea89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LiveViewNative/Coordinators/LiveViewCoordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ public class LiveViewCoordinator<R: RootRegistry>: ObservableObject {
271271
channel.onClose { _ in
272272
continuation.resume()
273273
}
274+
channel.leave()
274275
}
275-
channel.leave()
276276
}
277277
channel = nil
278278
self.internalState = .notConnected

0 commit comments

Comments
 (0)