Skip to content

Commit 6a9e436

Browse files
committed
clear e2eeManager instance
1 parent 83a39a1 commit 6a9e436

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/LiveKit/Core/Room+EngineDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ extension Room: EngineDelegate {
5353
// Re-connecting
5454
delegates.notify { $0.roomIsReconnecting?(self) }
5555
} else if case .disconnected = state.connectionState {
56+
// Clear out e2eeManager instance
57+
e2eeManager = nil
5658
// Disconnected
5759
if case .connecting = oldState.connectionState {
5860
delegates.notify { $0.room?(self, didFailToConnectWithError: oldState.disconnectError) }

0 commit comments

Comments
 (0)