Possibly fixed the weird disconnecting/reconnecting bug.

This commit is contained in:
irungentoo 2013-09-24 18:15:15 -04:00
parent 05a3851e43
commit 4a3bed3e85

View File

@ -858,7 +858,7 @@ static int handle_SYNC3(Lossless_UDP *ludp, int connection_id, uint8_t counter,
/* Packet valid. */
if (comp_1 <= connection->sendbuffer_length &&
comp_2 <= MAX_QUEUE_NUM &&
comp_counter == 1) {
comp_counter != 0 && comp_counter < 4) {
connection->orecv_packetnum = recv_packetnum;
connection->osent_packetnum = sent_packetnum;
connection->successful_sent = recv_packetnum;