mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
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:
co-authored by
Claude Sonnet 4.6
parent
3e0d79a091
commit
e4d17afcc5
+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