mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed bug.
This commit is contained in:
parent
50e0802a62
commit
6aaac706fa
@ -700,6 +700,7 @@ static int handle_request_packet(Packets_Array *send_array, const uint8_t *data,
|
|||||||
n = 0;
|
n = 0;
|
||||||
++requested;
|
++requested;
|
||||||
} else {
|
} else {
|
||||||
|
if (send_array->buffer[num]) {
|
||||||
uint64_t sent_time = send_array->buffer[num]->sent_time;
|
uint64_t sent_time = send_array->buffer[num]->sent_time;
|
||||||
|
|
||||||
if (l_sent_time < sent_time)
|
if (l_sent_time < sent_time)
|
||||||
@ -708,6 +709,7 @@ static int handle_request_packet(Packets_Array *send_array, const uint8_t *data,
|
|||||||
free(send_array->buffer[num]);
|
free(send_array->buffer[num]);
|
||||||
send_array->buffer[num] = NULL;
|
send_array->buffer[num] = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (n == 255) {
|
if (n == 255) {
|
||||||
n = 1;
|
n = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user