fix is_transfer_stopped() function. Fixes #7170
This commit is contained in:
parent
fb5d58de11
commit
35b9f5da6c
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue