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

Commit 45302782 authored by Cody Kesting's avatar Cody Kesting Committed by Automerger Merge Worker
Browse files

Decrement networkRequestPerUid when callbacks are unregistered. am: 13564eed am: c3f92fbd

Change-Id: I941046f6556688f301ba15a29b0937e88fdfe75b
parents 5816facf c3f92fbd
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7902,6 +7902,11 @@ public class ConnectivityService extends IConnectivityManager.Stub
            return;
        }

        // Decrement the reference count for this NetworkRequestInfo. The reference count is
        // incremented when the NetworkRequestInfo is created as part of
        // enforceRequestCountLimit().
        decrementNetworkRequestPerUidCount(nri);

        cb.asBinder().unlinkToDeath(mConnectivityDiagnosticsCallbacks.remove(cb), 0);
    }