Skip to content

Commit 9220587

Browse files
committed
Reconnect
1 parent 44e2af9 commit 9220587

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Sources/LiveKit/Agent/Session.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ open class Session: ObservableObject {
6666
/// A boolean value indicating whether the session is connected.
6767
public var isConnected: Bool {
6868
switch connectionState {
69-
case .connecting, .connected:
69+
case .connecting, .connected, .reconnecting: // pre-connect is connecting
7070
true
7171
default:
7272
false
@@ -263,7 +263,7 @@ open class Session: ObservableObject {
263263
}
264264

265265
/// Resets the last error.
266-
public func resetError() {
266+
public func dismissError() {
267267
error = nil
268268
}
269269

Sources/LiveKit/SwiftUI/LocalMedia.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ open class LocalMedia: ObservableObject {
137137
AudioManager.shared.onDeviceUpdate = nil
138138
}
139139

140+
/// Resets the last error.
141+
public func dismissError() {
142+
error = nil
143+
}
144+
140145
// MARK: - Toggle
141146

142147
/// Toggles the microphone on or off.

0 commit comments

Comments
 (0)