From 53397f607717828575ebccd3fdc1b8736ce87ea3 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 20 Sep 2013 10:02:16 -0400 Subject: [PATCH] Small fix in Lossless UDP. --- toxcore/Lossless_UDP.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/Lossless_UDP.c b/toxcore/Lossless_UDP.c index 94e94122..e976370f 100644 --- a/toxcore/Lossless_UDP.c +++ b/toxcore/Lossless_UDP.c @@ -674,7 +674,7 @@ static int handle_SYNC3(Lossless_UDP *ludp, int connection_id, uint8_t counter, /* Packet valid. */ if (comp_1 <= BUFFER_PACKET_NUM && comp_2 <= BUFFER_PACKET_NUM && - comp_counter < 10 && comp_counter != 0) { + comp_counter == 1) { connection->orecv_packetnum = recv_packetnum; connection->osent_packetnum = sent_packetnum; connection->successful_sent = recv_packetnum;