From 64bc5bd80779b9b3c70a633f12544d14ff419df9 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Mon, 6 Jul 2026 14:31:04 +0300 Subject: [PATCH] Code style Call.kt --- app/src/main/kotlin/com/tutpro/baresip/Call.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Call.kt b/app/src/main/kotlin/com/tutpro/baresip/Call.kt index 30157144..cc78e675 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Call.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Call.kt @@ -78,12 +78,11 @@ open class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir open fun resume(): Boolean { if (!onhold && !held) return true // 1. Hold other calls first - for (c in BaresipService.calls) { + for (c in BaresipService.calls) if (c.callp != this.callp && !c.onhold && !c.held) { Log.d("Baresip", "Auto-holding active call ${c.callp}") c.hold() } - } val connection = ConnectionService.connections[callp] // 2. SIP Signaling if (Api.call_hold(callp, false)) {