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

Commit 55c1f9be authored by Hui Wang's avatar Hui Wang
Browse files

Set state as RETRYING when startReconnect

Bug: 183146868
Test: Manual
Change-Id: I0eb60e111df388cf4a9a587213e80e10f97a9c6c
parent c09c5267
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2310,9 +2310,13 @@ public class DcTracker extends Handler {

    protected void startReconnect(long delay, ApnContext apnContext,
            @RequestNetworkType int requestType) {
        apnContext.setState(DctConstants.State.RETRYING);
        Message msg = obtainMessage(DctConstants.EVENT_DATA_RECONNECT,
                       mPhone.getSubId(), requestType, apnContext);
        cancelReconnect(apnContext);

        // Wait a bit before trying the next APN, so that
        // we're not tying up the RIL command channel
        sendMessageDelayed(msg, delay);

        if (DBG) {
@@ -3121,10 +3125,6 @@ public class DcTracker extends Handler {
                        + ". Request type=" + requestTypeToString(requestType) + ", Retry in "
                        + delay + "ms.");
            }
            apnContext.setState(DctConstants.State.RETRYING);
            // Wait a bit before trying the next APN, so that
            // we're not tying up the RIL command channel

            startReconnect(delay, apnContext, requestType);
        } else {
            // If we are not going to retry any APN, set this APN context to failed state.