Skip to content
Commit 9c227d9e authored by cosmohsieh's avatar cosmohsieh
Browse files

Fix WifiTracker keeps sacnning even if onStop() is called.

In critical case, WifiTracker.pauseScanning() and updateWifiState() are called
in same time but in different threads, causes racing condition problem.
mScanner.resume() will be called after mScanner.pause() but before  mScanner
is set as null.
Adding synchronized to prevent it.

Bug: 123404912
Test: atest WifiTrackerTest
Change-Id: I3a24fb0830cd1d0c93eca03786c10a1d168de00e
parent b09eed23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment