[NS A30] Note linger out of the rematch loop
This doesn't have to be tested every time. Test: FrameworksNetTests Change-Id: Ic5702c8b4bd096860fe55c4d9e4c465703561911
This commit is contained in:
@@ -6573,11 +6573,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
// network. Think about if there is a way to reduce this. Push
|
||||
// netid->request mapping to each provider?
|
||||
sendUpdatedScoreToFactories(nri.request, newSatisfier);
|
||||
if (isDefaultRequest(nri)) {
|
||||
if (previousSatisfier != null) {
|
||||
mLingerMonitor.noteLingerDefaultNetwork(previousSatisfier, newSatisfier);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// If "newNetwork" is listed as satisfying "nri" but no longer satisfies "nri",
|
||||
// mark it as no longer satisfying "nri". Because networks are processed by
|
||||
@@ -6633,6 +6628,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
changes.getNewSatisfier(defaultRequestInfo), oldDefaultNetwork);
|
||||
|
||||
if (oldDefaultNetwork != newDefaultNetwork) {
|
||||
if (oldDefaultNetwork != null) {
|
||||
mLingerMonitor.noteLingerDefaultNetwork(oldDefaultNetwork, newDefaultNetwork);
|
||||
}
|
||||
updateDataActivityTracking(newDefaultNetwork, oldDefaultNetwork);
|
||||
// Notify system services that this network is up.
|
||||
makeDefault(newDefaultNetwork);
|
||||
|
||||
Reference in New Issue
Block a user