1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-23 10:23:26 +01:00

small fix

This commit is contained in:
Jfreegman 2015-03-29 19:26:16 -04:00
parent 12c880ab51
commit e3130c92c0
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -146,7 +146,8 @@ struct FileTransfer *get_file_transfer_struct_index(uint32_t friendnum, uint32_t
struct FileTransfer *ft = direction == FILE_TRANSFER_SEND ?
&Friends.list[friendnum].file_sender[i] :
&Friends.list[friendnum].file_receiver[i];
if (ft->index == index)
if (ft->state != FILE_TRANSFER_INACTIVE && ft->index == index)
return ft;
}