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:
davotoula
2026-04-16 19:10:01 +02:00
committed by Claude
parent 3e0d79a091
commit e4d17afcc5
@@ -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" }
}
}