summaryrefslogtreecommitdiff
path: root/common/error_code_utils.cc
diff options
context:
space:
mode:
authorSen Jiang <senj@google.com>2018-07-12 14:27:04 -0700
committerSen Jiang <senj@google.com>2018-07-12 14:36:25 -0700
commit91f8d2aa3f8d7bd7bfb4c0dcaa30ef05b61de380 (patch)
treea85a0e4343841009882ab7286513138f37fcf15e /common/error_code_utils.cc
parent0779a151e585ac465de4ea03e710b24f60037724 (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 'common/error_code_utils.cc')
0 files changed, 0 insertions, 0 deletions