summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author guangkui.ren <guangkui.ren@sunmi.corp-partner.google.com> 2024-04-11 16:55:31 +0800
committer Rubin Xu <rubinxu@google.com> 2024-05-14 09:32:01 +0000
commit43d93da752030eda626bbdbb85b682006ee79c3b (patch)
treeb247d414b35b9e4f392f1e276cf7ed30db11df31 /api/api_test.go
parent1a1f9bf4315168629cb78206cd0211edbac9dd8a (diff)
Fix potential crash issue in NonRequiredPackageDeleteObserver
mLatch.notifyAll() will not help wake the thread which is blocked by mLatch.await, instead, it will cause system server crash. So, mark state as failed if any package is failed to be deleted, and let mLatch.countDown work until it comes to 0 and wake the thread blocked by await. Bug: 333845008 Change-Id: Ida1c3c128ddef376aaaacda1358717d0d4e9ca8b
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions