mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 07:46:35 +02:00
small fix
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user