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

Commit 78440223 authored by Susheel nyamala's avatar Susheel nyamala Committed by Gerrit - the friendly Code Review server
Browse files

Fix mms pdp activation issue

RefCount on apncontext will be decremented even though
it is not set if there is a release request while doing
PS attach on a sub. With negative refCount value, the
next pdp activation on same apncontext will be ignored.

Change-Id: If01d182f5072140be842add13784d7d51078687a
parent dca77760
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -256,8 +256,10 @@ public class ApnContext {

    public void decRefCount() {
        synchronized (mRefCountLock) {
            if (mRefCount-- == 1) {
            if ((mRefCount > 0) && (mRefCount-- == 1)) {
                mDcTracker.setEnabled(mDcTracker.apnTypeToId(mApnType), false);
            } else {
                log("Ignoring defCount request as mRefCount is: " + mRefCount);
            }
        }
    }