Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba37bf68 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

telephony: Fix ringing race condition

Commit c1bc8a9e had a race condition between
the first ring and the continuations. Delay the first continuation (second
ring) for <ring_delay>

Change-Id: I0ec7f69aa569f6d249a5dcb1d49d467967fa7d21
parent 3321a5a6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -994,7 +994,8 @@ public abstract class PhoneBase extends Handler implements Phone {
        AsyncResult ar = new AsyncResult(null, cn, null);
        if (SystemProperties.getBoolean(
                "ro.telephony.call_ring.absent", true)) {
            sendIncomingCallRingNotification(mCallRingContinueToken);
            sendMessageDelayed(
                    obtainMessage(EVENT_CALL_RING_CONTINUE, mCallRingContinueToken, 0), mCallRingDelay);
        }
        mNewRingingConnectionRegistrants.notifyRegistrants(ar);
    }