commit | 3f58a43edf4d27a136f925e965fd7031beafc6aa | [log] [tgz] |
---|---|---|
author | Jimmy Shiu <jimmyshiu@google.com> | Wed Mar 30 14:43:21 2022 +0800 |
committer | Jimmy Shiu <jimmyshiu@google.com> | Thu Mar 31 17:18:53 2022 +0800 |
tree | 404711608f88fb7a3999962b80c2bb7940770553 | |
parent | 10fffd3f0276ef74f3896d55bc7555a93519a752 [diff] |
Fix race condition between Looper and destructor 1. Clean all messages before add new. 2. Insteading of using `this`, use the unique mStaleHandler sp so Looper can hold the sp to keep the instance alive until the last message done. Test: Manual Test Bug: 219965773 Change-Id: Ic039146f0b966c1f27d86b121d4b72b75ff360e5