summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2020-01-09 05:26:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-01-09 05:26:34 +0000
commit918f68fce9d10cf567e90c8e841e1848c108c521 (patch)
treedf71a76af9c23296980d26b5151af76c3e74b975
parentb92d1f55133b0ffe49df89e7aab67b8db7036fa5 (diff)
parent13d5b866144b4c35a53f712d0b39c4cb7904b015 (diff)
Merge "Avoid creating IpClient if ethernet cable is unplugged."
-rw-r--r--service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
index 11c991d408..28f46061af 100644
--- a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -226,7 +226,7 @@ public class EthernetNetworkFactory extends NetworkFactory {
}
} else {
for (NetworkInterfaceState n : mTrackingInterfaces.values()) {
- if (n.statisified(request.networkCapabilities)) {
+ if (n.statisified(request.networkCapabilities) && n.mLinkUp) {
network = n;
break;
}