Disabling disconnecting a disconnected call.

This commit is contained in:
raincons
2023-03-04 14:31:24 +03:00
parent 5f24de65a2
commit 56f158c51f

View File

@@ -156,9 +156,10 @@ class CallManager {
fun reject() { fun reject() {
if (call != null) { if (call != null) {
if (getState() == Call.STATE_RINGING) { val state = getState()
if (state == Call.STATE_RINGING) {
call!!.reject(false, null) call!!.reject(false, null)
} else { } else if (state != Call.STATE_DISCONNECTED && state != Call.STATE_DISCONNECTING) {
call!!.disconnect() call!!.disconnect()
} }
} }