commit | 53d7744eb5d911c34a42316b527fd87db3f7f965 | [log] [tgz] |
---|---|---|
author | Quang Luong <qal@google.com> | Mon May 04 10:39:39 2020 -0700 |
committer | Quang Luong <qal@google.com> | Mon May 04 13:08:03 2020 -0700 |
tree | 5a1301755fe5ead5cb27ffba8f739da2661fa744 | |
parent | 329152acb062ea374bb5181d9eb8592cfe80ae42 [diff] |
[WifiTrackerLib] Make scanner run on single thread Scanner should run on single thread to prevent race condition where onStop() is called on the main thread while a msg is being processed on the worker thread. This would result in a looping msg being sent after the msg queue is cleared, which keeps the scan loop going even after onStop(). Bug: 155425309 Test: build Change-Id: Iecbab79b511bddf30515de27a60ff8eaf431d10e