Skip to content

Commit cd517ef

Browse files
committed
Check audioScope when starting audio session
1 parent c0e6d25 commit cd517ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ internal constructor(
148148
}
149149

150150
FirebaseAIException.catchAsync {
151-
if (networkScope.isActive) {
151+
if (networkScope.isActive || audioScope.isActive) {
152152
Log.w(
153153
TAG,
154154
"startAudioConversation called after the recording has already started. " +

0 commit comments

Comments
 (0)