mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed some audio group chat issues.
This commit is contained in:
parent
ab42c91a49
commit
370d553b6e
|
@ -1741,8 +1741,8 @@ static unsigned int lossy_packet_not_received(Group_c *g, int peer_index, uint16
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message_number - g->group[peer_index].bottom_lossy_number <= MAX_LOSSY_COUNT) {
|
|
||||||
if (g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT])
|
if (g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT])
|
||||||
|
if ((uint16_t)(message_number - g->group[peer_index].bottom_lossy_number) <= MAX_LOSSY_COUNT) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT] = 1;
|
g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT] = 1;
|
||||||
|
@ -1807,6 +1807,9 @@ static int handle_lossy(void *object, int friendcon_id, const uint8_t *data, uin
|
||||||
if (index == -1)
|
if (index == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
if (peer_number == g->peer_number)
|
||||||
|
return -1;
|
||||||
|
|
||||||
int peer_index = get_peer_index(g, peer_number);
|
int peer_index = get_peer_index(g, peer_number);
|
||||||
|
|
||||||
if (peer_index == -1)
|
if (peer_index == -1)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user