commit | d7063e66ab03f68a85ec96df2e83e2af551bef77 | [log] [tgz] |
---|---|---|
author | Paul Jensen <pauljensen@google.com> | Fri Sep 05 09:09:24 2014 -0400 |
committer | Paul Jensen <pauljensen@google.com> | Sun Sep 07 13:10:07 2014 -0400 |
tree | a6c91061486df8c1995f0c28e25de1592f5214f0 | |
parent | fdd04d42d2a0fe71236ba0a611ab550f52d8dd35 [diff] |
Don't send listening NetworkRequests to NetworkFactories. We were doing this when a NetworkAgent updated its score. bug:17393458 Change-Id: Id19ffc36b942b7112da70dfadd6abd57fcd128bd
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 3bab1bf..c3b56fe 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -4706,6 +4706,8 @@ // code will fire. for (int i = 0; i < nai.networkRequests.size(); i++) { NetworkRequest nr = nai.networkRequests.valueAt(i); + // Don't send listening requests to factories. b/17393458 + if (mNetworkRequests.get(nr).isRequest == false) continue; sendUpdatedScoreToFactories(nr, score); } }