summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2018-05-03 00:35:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-05-03 00:35:40 +0000
commitd2be5893c64fce7119a87b9f52067b24d07d6fd3 (patch)
treede6106c98521a319f800e3b0ed31dad131d1374f /service
parent6b9f7ba3c20a01689c1027043b6e6eb5b253348e (diff)
parentff16c9e2d8bf417d72d3d5d82d6e3719858ce36c (diff)
Merge "WifiStateMachine: Shutdown IpClient when exiting client mode" into pi-dev
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiStateMachine.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateMachine.java b/service/java/com/android/server/wifi/WifiStateMachine.java
index af0b8c257..3e85ae308 100644
--- a/service/java/com/android/server/wifi/WifiStateMachine.java
+++ b/service/java/com/android/server/wifi/WifiStateMachine.java
@@ -3813,6 +3813,7 @@ public class WifiStateMachine extends StateMachine {
mIsRunning = false;
updateBatteryWorkSource(null);
+ if (mIpClient != null) mIpClient.shutdown();
mNetworkInfo.setIsAvailable(false);
if (mNetworkAgent != null) mNetworkAgent.sendNetworkInfo(mNetworkInfo);
mCountryCode.setReadyForChange(false);