diff options
author | irungentoo <irungentoo@gmail.com> | 2014-11-11 08:37:43 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-11-11 08:37:43 -0500 |
commit | bf0289ef80f9c5dac5071966719f3f245583d571 (patch) | |
tree | 0ed7e26c423145c227faaa2471b1744ee5462840 /toxcore | |
parent | 370d553b6e81fda0f83406eb59f0ca4bdf7650e9 (diff) |
Fixed bug.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/group.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/group.c b/toxcore/group.c index 9ff9ee65..53b4ade1 100644 --- a/toxcore/group.c +++ b/toxcore/group.c | |||
@@ -1741,9 +1741,10 @@ static unsigned int lossy_packet_not_received(Group_c *g, int peer_index, uint16 | |||
1741 | return 0; | 1741 | return 0; |
1742 | } | 1742 | } |
1743 | 1743 | ||
1744 | if (g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT]) | ||
1745 | if ((uint16_t)(message_number - g->group[peer_index].bottom_lossy_number) <= MAX_LOSSY_COUNT) { | 1744 | if ((uint16_t)(message_number - g->group[peer_index].bottom_lossy_number) <= MAX_LOSSY_COUNT) { |
1745 | if (g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT]) { | ||
1746 | return 1; | 1746 | return 1; |
1747 | } | ||
1747 | 1748 | ||
1748 | g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT] = 1; | 1749 | g->group[peer_index].recv_lossy[message_number % MAX_LOSSY_COUNT] = 1; |
1749 | return 0; | 1750 | return 0; |