Skip to content
Commit 0f9fc342 authored by JW Wang's avatar JW Wang
Browse files

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
parent f0541557
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