bug fix
This commit is contained in:
parent
90cabe1a45
commit
33290216df
@ -137,7 +137,7 @@ def tox_file_recv(window, tray):
|
||||
settings = Settings.get_instance()
|
||||
if file_type == TOX_FILE_KIND['DATA']:
|
||||
print 'file'
|
||||
file_name = file_name[:file_name_size].decode('utf8')
|
||||
file_name = file_name[:file_name_size]
|
||||
invoke_in_main_thread(profile.incoming_file_transfer,
|
||||
friend_number,
|
||||
file_number,
|
||||
|
@ -33,6 +33,7 @@ class ReceiveTransfer(FileTransfer):
|
||||
def __init__(self, path, tox, friend_number):
|
||||
super(self.__class__, self).__init__(path, tox, friend_number)
|
||||
self._file = open(self._path, 'wb')
|
||||
self._file.truncate(0)
|
||||
|
||||
def write_chunk(self, position, data):
|
||||
if data is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user