mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Fixed issue with TelecomManager not disconnecting when call state is Error
This commit is contained in:
parent
372a16d3ab
commit
7c755bd080
1 changed files with 6 additions and 1 deletions
|
|
@ -75,9 +75,14 @@ class TelecomCallControlCallback(
|
|||
}
|
||||
} else if (state == Call.State.End) {
|
||||
scope.launch {
|
||||
Log.i("$TAG Disconnecting call")
|
||||
Log.i("$TAG Disconnecting call because it has ended")
|
||||
callControl.disconnect(DisconnectCause(DisconnectCause.LOCAL))
|
||||
}
|
||||
} else if (state == Call.State.Error) {
|
||||
scope.launch {
|
||||
Log.w("$TAG Disconnecting call due to error [$message]")
|
||||
callControl.disconnect(DisconnectCause(DisconnectCause.ERROR))
|
||||
}
|
||||
} else if (state == Call.State.Pausing) {
|
||||
scope.launch {
|
||||
Log.i("$TAG Pausing call")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue