diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoBuilder.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoBuilder.kt index d93bd1a5a1..acf07d7013 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoBuilder.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/StreamVideoBuilder.kt @@ -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() } } diff --git a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/DebugInfo.kt b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/DebugInfo.kt index 247baa29e6..bc65500f55 100644 --- a/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/DebugInfo.kt +++ b/stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/utils/DebugInfo.kt @@ -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 @@ -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() + val timers = Collections.synchronizedList(mutableListOf()) // last 20 events // phone type