Skip to content

Commit

Permalink
Bugfixes 20240702 (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandar-apostolov authored Jul 2, 2024
1 parent f8a588b commit 61069e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public class StreamVideoBuilder @JvmOverloads constructor(
}.onError {
streamLog { it.message }
}
} catch (e: Exception) {
} catch (e: Throwable) {
// If the connect continuation was resumed with an exception, we catch it here.
streamLog { e.message.orEmpty() }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.util.Collections

internal data class Timer(val name: String, val start: Long = System.currentTimeMillis()) {
var end: Long = 0
Expand Down Expand Up @@ -58,7 +59,7 @@ internal class DebugInfo(val client: StreamVideoImpl) {
private val logger by taggedLogger("DebugInfo")

// timers to help track performance issues in prod
val timers = mutableListOf<Timer>()
val timers = Collections.synchronizedList(mutableListOf<Timer>())
// last 20 events

// phone type
Expand Down

0 comments on commit 61069e6

Please sign in to comment.