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

fix filetransfer bug

This commit is contained in:
Jfreegman 2014-08-03 16:44:21 -04:00
parent bc4a730e76
commit ad23816096
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -369,7 +369,7 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int32_t num, uint8_t rec
filename = friends[num].file_receiver.filenames[filenum];
} else {
for (i = 0; i < MAX_FILES; ++i) {
if (file_senders[i].filenum == filenum)
if (file_senders[i].active && file_senders[i].filenum == filenum)
break;
}