commit | b81d951ecd91a3fc0625178f5fbb08cf627521bc | [log] [tgz] |
---|---|---|
author | Jimmy Shiu <jimmyshiu@google.com> | Wed Mar 30 14:43:21 2022 +0800 |
committer | Matsvei Niaverau <matvej2002@gmail.com> | Wed Mar 08 10:10:38 2023 +0100 |
tree | ff4b343e6cb86dbd18374ca4f96b1a5ad5f4e150 | |
parent | c1a46ecee7ce5ad1c67b628e565b03ae6802dc54 [diff] |
power: 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