am e6f856c9: am 0ca68a06: Cleanup of process-specific DNS. am: 5ff2dcfa4e

Original change: undetermined

Change-Id: I54e7e1feda1a8b5aaa0106227a027864f9a8ddb5
This commit is contained in:
Robert Greenwalt
2021-05-31 10:29:30 +00:00
committed by Automerger Merge Worker

View File

@@ -667,8 +667,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
}
if (usedNetworkType != networkType) {
Integer currentPid = new Integer(pid);
reassessPidDns(pid, true);
mNetRequestersPids[usedNetworkType].remove(currentPid);
reassessPidDns(pid, true);
if (mNetRequestersPids[usedNetworkType].size() != 0) {
if (DBG) Log.d(TAG, "not tearing down special network - " +
"others still using it");