Merge "Avoid creating IpClient if ethernet cable is unplugged."

This commit is contained in:
Lorenzo Colitti
2020-01-09 05:26:34 +00:00
committed by Gerrit Code Review

View File

@@ -226,7 +226,7 @@ public class EthernetNetworkFactory extends NetworkFactory {
} }
} else { } else {
for (NetworkInterfaceState n : mTrackingInterfaces.values()) { for (NetworkInterfaceState n : mTrackingInterfaces.values()) {
if (n.statisified(request.networkCapabilities)) { if (n.statisified(request.networkCapabilities) && n.mLinkUp) {
network = n; network = n;
break; break;
} }