fix is_transfer_stopped() function. Fixes #7170
This commit is contained in:
parent
fb5d58de11
commit
35b9f5da6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue