diff options
author | Sen Jiang <senj@google.com> | 2018-07-12 14:27:04 -0700 |
---|---|---|
committer | Sen Jiang <senj@google.com> | 2018-07-12 14:36:25 -0700 |
commit | 91f8d2aa3f8d7bd7bfb4c0dcaa30ef05b61de380 (patch) | |
tree | a85a0e4343841009882ab7286513138f37fcf15e /scripts/update_device.py | |
parent | 0779a151e585ac465de4ea03e710b24f60037724 (diff) |
Use ActionProcessor::IsRunning() to check for ongoing update.
If we started the update but the action processor haven't started yet,
and at this moment we get a call to CancelUpdate(), |ongoing_update_|
will be true but processor_->IsRunning() is false, which will crash by
CHECK(IsRunning()) in ActionProcessor::StopProcessing().
We can simply always use ActionProcessor::IsRunning() to track the state
and remove |ongoing_update_| variable.
Bug: 111354431
Test: start an update and cancel it
Change-Id: I1bcb4ecf62d931e649389062bd6a08834d94a4cc
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions