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.
master
Curt Brune 2020-02-18 09:02:11 -08:00 committed by Greyson Parrelli
parent 9506da6dd3
commit 58b7612987
1 changed files with 2 additions and 1 deletions

View File

@ -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) {