summaryrefslogtreecommitdiff
path: root/scripts/update_device.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-09-25 15:09:07 -0700
committerTreehugger Robot <treehugger-gerrit@google.com>2020-09-30 00:12:47 +0000
commitd1d52a0b4b59be633e674dbc012baff97f8d0c80 (patch)
tree467c7b8dc51cdf84222876db56c3a5c92cc02347 /scripts/update_device.py
parentd506deef54c216feab9c6889ae21b57181128661 (diff)
CleanupPreviousUpdateAction: cancel pending tasks on destroy
Maintain a variable that tracks the task ID of the pending task in the message loop. On destroy, cancel the pending task to avoid segfault. Test: during merge, call update_engine_client --cancel and it does not crash Fixes: 169436297 Change-Id: I9f3bccc5d4d5e2aaad1d08ef815c50100220c870
Diffstat (limited to 'scripts/update_device.py')
0 files changed, 0 insertions, 0 deletions