diff --git a/Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs b/Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs index 5b071c7e..79f07f88 100644 --- a/Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs +++ b/Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs @@ -253,20 +253,6 @@ public void Dispose() //StreamTodo: to make updates more explicit we could make an UpdateService, that we could tell such dependency by constructor and component would self-register for updates public void Update() { - if (_terminateCall) - { - _terminateCall = false; - - if (ActiveCall != null) - { -#if STREAM_DEBUG_ENABLED - _logs.Error("Sfu Websocket Disconnected IN UPDATE-> Stopping the call. Thread ID: " + - System.Threading.Thread.CurrentThread.ManagedThreadId); -#endif - ActiveCall.LeaveAsync().LogIfFailed(); - } - } - _sfuWebSocket.Update(); Publisher?.Update(); _statsSender.Update(); @@ -535,8 +521,6 @@ private readonly Dictionary _videoResolutionByParticipa private MicrophoneDeviceInfo _activeAudioRecordingDevice; - private bool _terminateCall; - private void ClearSession() { UnsubscribeFromSfuEvents(); @@ -1641,12 +1625,6 @@ private void OnPublisherVideoTrackChanged(VideoStreamTrack videoTrack) private void OnSfuWebSocketDisconnected() { //StreamTODO: check how other SDKs are handling this. Ideally we should have call recovery logic here - _terminateCall = true; - -#if STREAM_DEBUG_ENABLED - _logs.Error("Sfu Websocket Disconnected -> Schedule stopping the cal. Thread ID: " + - System.Threading.Thread.CurrentThread.ManagedThreadId); -#endif } private static bool AssertCallIdMatch(IStreamCall activeCall, string callId, ILogs logs)