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

Commit f1b83825 authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Cleanup connections for APNs that are not connected"

parents bf43973b 9db48844
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2507,7 +2507,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;