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

Commit 59954c81 authored by Chalard Jean's avatar Chalard Jean
Browse files

[NS A30] Note linger out of the rematch loop

This doesn't have to be tested every time.

Test: FrameworksNetTests
Change-Id: Ic5702c8b4bd096860fe55c4d9e4c465703561911
parent f2cbe683
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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);