Wait for IpClient to shutdown am: 7048285cb3

am: 206f8c6993

Change-Id: I96b1a4a706afc82b7a4a59f311798e3825b0ee00
This commit is contained in:
Erik Kline
2018-02-23 07:46:34 +00:00
committed by android-build-merger

View File

@@ -355,8 +355,10 @@ public class EthernetNetworkFactory extends NetworkFactory {
void stop() {
if (mIpClient != null) {
mIpClient.shutdown();
mIpClient.awaitShutdown();
mIpClient = null;
}
// ConnectivityService will only forget our NetworkAgent if we send it a NetworkInfo object
// with a state of DISCONNECTED or SUSPENDED. So we can't simply clear our NetworkInfo here:
// that sets the state to IDLE, and ConnectivityService will still think we're connected.