fix: use _sessionEvents.tryEmit instead of recursive self-call in emitSessionEvent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -103,7 +103,7 @@ class CallManager(
|
||||
|
||||
/** Emits a session event, logging a warning if the buffer overflows. */
|
||||
private fun emitSessionEvent(event: CallSessionEvent) {
|
||||
if (!emitSessionEvent(event)) {
|
||||
if (!_sessionEvents.tryEmit(event)) {
|
||||
Log.e("CallManager") { "sessionEvents buffer overflow — dropped: $event" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user