diff options
-rw-r--r-- | service/java/com/android/server/wifi/HalDeviceManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/HalDeviceManager.java b/service/java/com/android/server/wifi/HalDeviceManager.java index 783c91adf..3d0c89c4a 100644 --- a/service/java/com/android/server/wifi/HalDeviceManager.java +++ b/service/java/com/android/server/wifi/HalDeviceManager.java @@ -179,7 +179,9 @@ public class HalDeviceManager { */ public void stop() { stopWifi(); - mWifi = null; + synchronized (mLock) { // prevents race condition + mWifi = null; + } } /** |