mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed deadlock when receiving call
This commit is contained in:
parent
3ea3ff288b
commit
d30f7ba5ba
1 changed files with 2 additions and 1 deletions
|
|
@ -54,8 +54,9 @@ class TelecomCallControlCallback constructor(
|
|||
Log.i("$TAG Call [${call.remoteAddress.asStringUriOnly()}] state changed [$state]")
|
||||
if (state == Call.State.Connected) {
|
||||
if (call.dir == Call.Dir.Incoming) {
|
||||
val videoEnabled = call.currentParams.isVideoEnabled
|
||||
scope.launch {
|
||||
val type = if (call.currentParams.isVideoEnabled) {
|
||||
val type = if (videoEnabled) {
|
||||
CallAttributesCompat.CALL_TYPE_VIDEO_CALL
|
||||
} else {
|
||||
CallAttributesCompat.CALL_TYPE_AUDIO_CALL
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue