commit | 0f9fc342ea8c9d3dc42f142323d682176d7a884d | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Fri Jan 29 21:25:05 2021 +0800 |
committer | JW Wang <wangchun@google.com> | Mon Feb 01 12:40:21 2021 +0800 |
tree | 34d80cb7d77872cd44c54b7c34e0b00251029470 | |
parent | f0541557979a429f93e2c4d057a76c79dac319d3 [diff] |
Register and unregister might be out of order (5/n) Calling unregisterHealthObserver() right after startObservingHealth() will fail to unregister observers correctly because startObservingHealth() do registration asynchronously. Let's do unregistration asynchronously as well to keep things in order. Bug: 178675924 Test: atest PackageWatchdogTest Change-Id: I7dfea957fb88f0346cdeea20e626a728ec1a1325