mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed case where a recv and a sending file would have the same number.
recv file numbers are now (file num in packet + 1) << 16
This commit is contained in:
parent
73b9cf48f9
commit
4c4ffb7409
|
@ -1765,6 +1765,7 @@ static int handle_packet(void *object, int i, uint8_t *temp, uint16_t len)
|
||||||
filename_terminated[data_length - head_length] = 0;
|
filename_terminated[data_length - head_length] = 0;
|
||||||
|
|
||||||
uint32_t real_filenumber = filenumber;
|
uint32_t real_filenumber = filenumber;
|
||||||
|
real_filenumber += 1;
|
||||||
real_filenumber <<= 16;
|
real_filenumber <<= 16;
|
||||||
|
|
||||||
if (m->file_sendrequest)
|
if (m->file_sendrequest)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user