Skip to content

Commit ce3a8eb

Browse files
committed
log exception (otherwise there's no call stack in rethrown exception) but skip logging if the operation was cancelled
1 parent 81527f2 commit ce3a8eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Packages/StreamVideo/Runtime/Core/LowLevelClient/RtcSession.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,14 @@ public async Task StartAsync(StreamCall call, CancellationToken cancellationToke
454454
_videoAudioSyncBenchmark?.Init(call);
455455
#endif
456456
}
457+
catch(OperationCanceledException)
458+
{
459+
ClearSession();
460+
throw;
461+
}
457462
catch(Exception e)
458463
{
464+
_logs.Exception(e);
459465
ClearSession();
460466
throw;
461467
}

0 commit comments

Comments
 (0)