Avoid repeated log messages

This commit is contained in:
Juha Heinanen
2026-04-27 19:43:40 +03:00
parent 5b367865d7
commit 4654adea6c

View File

@ -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)