Reduced time to allow other disconnects to 500 ms

Avoid lint warning on TAG
This commit is contained in:
Juha Heinanen
2026-04-21 16:57:02 +03:00
parent 9970bc6624
commit 9f52615a6f

View File

@ -13,9 +13,9 @@ import java.util.concurrent.ConcurrentHashMap
class ConnectionService : ConnectionService() {
private val TAG = "BaresipConnection"
companion object {
private const val TAG = "BaresipConnection"
val connections = ConcurrentHashMap<Long, BaresipConnection>()
var pendingOutgoingConnection: BaresipConnection? = null
var lastDisconnectTime = 0L
@ -188,7 +188,7 @@ class ConnectionService : ConnectionService() {
// Allow other disconnects after a short period to prevent the "Telecom Cascade" effect
android.os.Handler(android.os.Looper.getMainLooper()).postDelayed({
isDisconnecting = false
}, 1000)
}, 500)
}
override fun onAbort() {