mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Small changes.
This commit is contained in:
parent
65a198ffa5
commit
62839f1bd9
|
@ -563,17 +563,15 @@ int handle_SYNC(char * packet, uint32_t length, IP_Port source)
|
||||||
}
|
}
|
||||||
if(connection == -1)
|
if(connection == -1)
|
||||||
{
|
{
|
||||||
handle_SYNC1(source, recv_packetnum, sent_packetnum);
|
return handle_SYNC1(source, recv_packetnum, sent_packetnum);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
if(connections[connection].status == 2)
|
if(connections[connection].status == 2)
|
||||||
{
|
{
|
||||||
handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum);
|
return handle_SYNC2(connection, counter, recv_packetnum, sent_packetnum);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
if(connections[connection].status == 3)
|
if(connections[connection].status == 3)
|
||||||
{
|
{
|
||||||
handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number);
|
return handle_SYNC3(connection, counter, recv_packetnum, sent_packetnum, req_packets, number);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user