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

Commit ba98956e authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android Git Automerger
Browse files

am 92a12eaf: am 1138cd35: Merge "Don\'t allow the apn to decrement below 0." into mnc-dr-dev

* commit '92a12eaf':
  Don't allow the apn to decrement below 0.
parents b4a5bf15 92a12eaf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -334,6 +334,10 @@ public class ApnContext {
            if (mRefCount-- == 1) {
                mDcTracker.setEnabled(mDcTracker.apnTypeToId(mApnType), false);
            }
            if (mRefCount < 0) {
                log.log("ApnContext.decRefCount went to " + mRefCount);
                mRefCount = 0;
            }
        }
    }