Drop requests to deny stale incoming calls.
This is not an illegal state, as the remote side could have hung-up a microsecond before the local side tries to deny the call.
This commit is contained in:
parent
9506da6dd3
commit
58b7612987
1 changed files with 2 additions and 1 deletions
|
@ -423,7 +423,8 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
|||
|
||||
private void handleDenyCall(Intent intent) {
|
||||
if (activePeer == null) {
|
||||
throw new IllegalStateException("Deny with no active call");
|
||||
Log.i(TAG, "handleDenyCall(): Ignoring for inactive call.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (activePeer.getState() != CallState.LOCAL_RINGING) {
|
||||
|
|
Loading…
Add table
Reference in a new issue