Commit 91f8d2aa authored by Sen Jiang's avatar Sen Jiang
Browse files

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
parent 0779a151
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment