File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
firebase-ai/src/main/kotlin/com/google/firebase/ai/type Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import io.ktor.client.plugins.websocket.DefaultClientWebSocketSession
3333import io.ktor.websocket.Frame
3434import io.ktor.websocket.close
3535import io.ktor.websocket.readBytes
36+ import kotlinx.coroutines.CoroutineName
3637import java.util.concurrent.ConcurrentLinkedQueue
3738import java.util.concurrent.atomic.AtomicBoolean
3839import kotlin.coroutines.CoroutineContext
@@ -137,8 +138,8 @@ internal constructor(
137138 )
138139 return @catchAsync
139140 }
140-
141- scope = CoroutineScope (blockingDispatcher + childJob())
141+ // TODO: maybe it should be THREAD_PRIORITY_AUDIO anyways for playback and recording (not network though)
142+ scope = CoroutineScope (blockingDispatcher + childJob() + CoroutineName ( " LiveSession Scope " ) )
142143 audioHelper = AudioHelper .build()
143144
144145 recordUserAudio()
You can’t perform that action at this time.
0 commit comments