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

Commit b80f9b00 authored by Chalard Jean's avatar Chalard Jean
Browse files

Fix a bug where a request would not be refcounted

This ends up crashing the system when the request
is unregistered, because the ref counter finds the
count associated with the relevant UID is zero.

Test: FrameworksNetTests
Test: TODO : this needs a new unit test
Change-Id: I0ee0ce925a826d35d8fd58cefb8a870e98ce9add
parent 06985411
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5259,6 +5259,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
            mPid = nri.mPid;
            mUid = nri.mUid;
            mPendingIntent = nri.mPendingIntent;
            mNetworkRequestCounter.incrementCountOrThrow(mUid);
            mCallingAttributionTag = nri.mCallingAttributionTag;
        }