mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 16:03:03 +01:00
small fix
This commit is contained in:
parent
12c880ab51
commit
e3130c92c0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user