Merge "Avoid creating IpClient if ethernet cable is unplugged."
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