[NS A39] Simplification

If newNetwork is satisfying this request, it means it is the old
satisfier. Plain and simple.

Test: ConnectivityServiceTest
Change-Id: Ic1a5d032801bac476b1c1f53da6f1c4c6056bff0
This commit is contained in:
Chalard Jean
2019-12-03 23:31:17 +09:00
parent 84292aaa46
commit 933ebfa503

View File

@@ -6538,7 +6538,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
if (currentNetwork == null || currentNetwork.getCurrentScore() < score) {
reassignedRequests.put(nri, newNetwork);
}
} else if (newNetwork.isSatisfyingRequest(nri.request.requestId)) {
} else if (newNetwork == currentNetwork) {
reassignedRequests.put(nri, null);
}
}