Skip to content

Commit

Permalink
clear e2eeManager instance
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed May 31, 2024
1 parent 83a39a1 commit 6a9e436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/LiveKit/Core/Room+EngineDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ extension Room: EngineDelegate {
// Re-connecting
delegates.notify { $0.roomIsReconnecting?(self) }
} else if case .disconnected = state.connectionState {
// Clear out e2eeManager instance
e2eeManager = nil
// Disconnected
if case .connecting = oldState.connectionState {
delegates.notify { $0.room?(self, didFailToConnectWithError: oldState.disconnectError) }
Expand Down

0 comments on commit 6a9e436

Please sign in to comment.