fix is_transfer_stopped() function. Fixes #7170

This commit is contained in:
Yann Leboulanger 2012-08-23 12:12:19 +02:00
parent fb5d58de11
commit 35b9f5da6c
1 changed files with 1 additions and 3 deletions

View File

@ -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