diff options
author | Yifan Hong <elsk@google.com> | 2020-09-25 15:09:07 -0700 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2020-09-30 00:12:47 +0000 |
commit | d1d52a0b4b59be633e674dbc012baff97f8d0c80 (patch) | |
tree | 467c7b8dc51cdf84222876db56c3a5c92cc02347 /scripts/update_device.py | |
parent | d506deef54c216feab9c6889ae21b57181128661 (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