mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed file sending bug.
This commit is contained in:
parent
b0f9e6db6f
commit
b2c5e16132
|
@ -1044,8 +1044,13 @@ int file_control(Messenger *m, int friendnumber, uint8_t send_receive, uint8_t f
|
|||
if (friend_not_valid(m, friendnumber))
|
||||
return 0;
|
||||
|
||||
if (m->friendlist[friendnumber].file_receiving[filenumber].status == FILESTATUS_NONE)
|
||||
return 0;
|
||||
if (send_receive == 1) {
|
||||
if (m->friendlist[friendnumber].file_receiving[filenumber].status == FILESTATUS_NONE)
|
||||
return 0;
|
||||
} else {
|
||||
if (m->friendlist[friendnumber].file_sending[filenumber].status == FILESTATUS_NONE)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (send_receive > 1)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user