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
This commit is contained in:
parent
738c5bf0a1
commit
2d235fbe33
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue