removing old corrupted file before starting file request

This commit is contained in:
Jefry Lagrange 2012-09-08 17:35:11 -04:00
parent bfc4dccc0f
commit 83dfd5e05b
1 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,8 @@ class FileTransfersWindow:
def show_hash_error(self, jid, file_props, account):
def on_yes(dummy):
# Delete old file
os.remove(file_props.file_name)
# Request the file to the sender
contact = gajim.contacts.get_contact_with_highest_priority(account,
jid)