Skip to content

Commit

Permalink
Drop requests to deny stale incoming calls.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbrune-signal authored and greyson-signal committed Feb 26, 2020
1 parent 9506da6 commit 58b7612
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ private void insertMissedCall(@NonNull RemotePeer remotePeer, boolean signal) {

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) {
Expand Down

0 comments on commit 58b7612

Please sign in to comment.