correctly compute file hash when file is received

This commit is contained in:
Yann Leboulanger 2017-08-16 22:03:17 +02:00
parent 1211a1bc59
commit 99b27b4484
1 changed files with 2 additions and 1 deletions

View File

@ -996,7 +996,8 @@ class Interface:
file_props=file_props)) file_props=file_props))
else: else:
ft.set_status(file_props, 'stop') ft.set_status(file_props, 'stop')
if file_props.stalled or file_props.paused: if not file_props.completed and (file_props.stalled or \
file_props.paused):
return return
if file_props.type_ == 'r': # we receive a file if file_props.type_ == 'r': # we receive a file