Wait for IpClient to shutdown
am: 7048285cb3
Change-Id: I82d6635bac0836852bff74005ce75a6c36c570db
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user