Skip to content

Commit fafcd3e

Browse files
committed
Revert IO change
1 parent 6ac89dc commit fafcd3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/LiveSession.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ internal constructor(
390390
}
391391
}
392392
}
393-
.launchIn(CoroutineScope(Dispatchers.IO))
393+
.launchIn(scope)
394394
}
395395

396396
/**
@@ -401,7 +401,7 @@ internal constructor(
401401
* Launched asynchronously on [scope].
402402
*/
403403
private fun listenForModelPlayback(enableInterruptions: Boolean = false) {
404-
CoroutineScope(Dispatchers.IO).launch {
404+
scope.launch {
405405
while (isActive) {
406406
val playbackData = playBackQueue.poll()
407407
if (playbackData == null) {

0 commit comments

Comments
 (0)