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

Commit 7b4e8c31 authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Cleanup connections for APNs that are not connected"

am: f1b83825

Change-Id: I1e3e3a1254b71b601b86d794ece6111caf27d593
parents 1309a4c0 f1b83825
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2534,7 +2534,12 @@ public class DcTracker extends Handler {
                // request goes away.  This applies to both CDMA and GSM because they both
                // can declare the DUN APN sharable by default traffic, thus still satisfying
                // those requests and not torn down organically.
                if (apnContext.getApnType() == PhoneConstants.APN_TYPE_DUN && teardownForDun()) {
                if ((apnContext.getApnType() == PhoneConstants.APN_TYPE_DUN && teardownForDun())
                        || apnContext.getState() != DctConstants.State.CONNECTED) {
                    str = "Clean up the connection. Apn type = " + apnContext.getApnType()
                            + ", state = " + apnContext.getState();
                    if (DBG) log(str);
                    apnContext.requestLog(str);
                    cleanup = true;
                } else {
                    cleanup = false;