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

Commit 91082128 authored by Cody Kesting's avatar Cody Kesting Committed by Gerrit Code Review
Browse files

Merge "Decrement networkRequestPerUid when callbacks are unregistered."

parents e4479f57 662076b1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7893,6 +7893,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);
    }