bug fixes and docs update

This commit is contained in:
ingvar1995
2016-08-08 22:11:43 +03:00
parent 3668088f3e
commit 47b710acdd
3 changed files with 5 additions and 3 deletions

View File

@@ -313,7 +313,7 @@ class Profile(contact.Contact, Singleton):
ft = self._file_transfers[(friend_num, file_num)]
if type(ft) is SendTransfer:
self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, False, -1]
elif type(ft) is ReceiveTransfer:
elif type(ft) is ReceiveTransfer and ft.state != TOX_FILE_TRANSFER_STATE['INCOMING_NOT_STARTED']:
self._paused_file_transfers[ft.get_id()] = [ft.get_path(), friend_num, True, ft.total_size()]
self.cancel_transfer(friend_num, file_num, True)