resuming fix
This commit is contained in:
parent
61e7aad847
commit
adcc32fc49
@ -114,7 +114,7 @@ def friend_status(tox, friend_num, new_status, user_data):
|
||||
if friend.status is None and Settings.get_instance()['sound_notifications'] and profile.status != TOX_USER_STATUS['BUSY']:
|
||||
sound_notification(SOUND_NOTIFICATION['FRIEND_CONNECTION_STATUS'])
|
||||
invoke_in_main_thread(friend.set_status, new_status)
|
||||
invoke_in_main_thread(profile.send_files, friend_num)
|
||||
invoke_in_main_thread(QtCore.QTimer.singleShot, 5000, lambda: profile.send_files(friend_num))
|
||||
invoke_in_main_thread(profile.update_filtration)
|
||||
|
||||
|
||||
|
@ -970,12 +970,7 @@ class Profile(contact.Contact, Singleton):
|
||||
"""
|
||||
self.get_friend_by_number(friend_number).update_transfer_data(file_number,
|
||||
TOX_FILE_TRANSFER_STATE['RUNNING'])
|
||||
try:
|
||||
tr = self._file_transfers[(friend_number, file_number)]
|
||||
except:
|
||||
print('Exception in resume:', self._file_transfers)
|
||||
print(friend_number, file_number, by_friend)
|
||||
return
|
||||
if by_friend:
|
||||
tr.state = TOX_FILE_TRANSFER_STATE['RUNNING']
|
||||
tr.signal()
|
||||
|
Loading…
Reference in New Issue
Block a user