Skip to content

Commit

Permalink
cancel progress task
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jan 20, 2025
1 parent 8d144fb commit 1313680
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qmpbackup
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ async def main():
log.info("Removing non-persistent bitmaps used for copy backup.")
await qemu_client.remove_bitmaps(blockdev, prefix="qmpbackup-copy")

for task in asyncio.all_tasks():
if task.get_name() == "progress" and task.done() is not True:
task.cancel()
await qmp.disconnect()

if SIGNAL_CATCHED is True:
Expand Down

0 comments on commit 1313680

Please sign in to comment.