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