Skip to content
Snippets Groups Projects
Commit 35b9f5da authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix is_transfer_stopped() function. Fixes #7170

parent fb5d58de
No related branches found
No related tags found
No related merge requests found
......@@ -69,12 +69,10 @@ def is_transfer_active(file_props):
def is_transfer_stopped(file_props):
if not file_props:
return True
if file_props.error != 0:
if file_props.error:
return True
if file_props.completed:
return True
if not file_props.connected:
return True
if not file_props.stopped:
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment