Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -535,8 +521,6 @@ private readonly Dictionary<string, VideoResolution> _videoResolutionByParticipa

private MicrophoneDeviceInfo _activeAudioRecordingDevice;

private bool _terminateCall;

private void ClearSession()
{
UnsubscribeFromSfuEvents();
Expand Down Expand Up @@ -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)
Expand Down
Loading