From 4654adea6c6aa6b5b9aa6ed65ec4cd343c4bb7bf Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 27 Apr 2026 19:43:40 +0300 Subject: [PATCH] Avoid repeated log messages --- app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt b/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt index 5d54d0d4..19f841fc 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ConnectionService.kt @@ -228,9 +228,10 @@ class ConnectionService : ConnectionService() { @Deprecated("Deprecated in Java") @Suppress("DEPRECATION") override fun onCallAudioStateChanged(state: CallAudioState?) { + if (state == null || isDisconnecting || getState() == STATE_DISCONNECTED) return super.onCallAudioStateChanged(state) Log.d(TAG, "onCallAudioStateChanged: $state") - state?.let { + state.let { if (BaresipService.isMicMuted != it.isMuted) { BaresipService.isMicMuted = it.isMuted Api.calls_mute(it.isMuted)