Relaunch ddrescueview when resuming clone

This commit is contained in:
2Shirt 2023-06-17 20:13:32 -07:00
parent 3e10f2cb8c
commit d958945fe8
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -1954,7 +1954,10 @@ def run_ddrescue(state, block_pair, pass_name, settings, dry_run=True) -> None:
# Start ddrescue and ddrescueview (if enabled)
proc = exe.popen_program(cmd)
if block_pair.view_map and not block_pair.view_proc:
if (
block_pair.view_map
and (not block_pair.view_proc or block_pair.view_proc.poll() is not None)
):
block_pair.view_proc = exe.popen_program(
['ddrescueview', '-r', '5s', block_pair.map_path],
pipe=True,