Merge "Avoid creating IpClient if ethernet cable is unplugged."
am: 918f68fce9
Change-Id: I097f2f68ea5b40997de7d312bbf6946c44e3b011
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user