mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed possible issue.
This commit is contained in:
parent
52d1c9a4d9
commit
41e083c173
@ -832,8 +832,7 @@ static int handle_SYNC2(Lossless_UDP *ludp, int connection_id, uint8_t counter,
|
||||
{
|
||||
Connection *connection = &tox_array_get(&ludp->connections, connection_id, Connection);
|
||||
|
||||
if (recv_packetnum == connection->orecv_packetnum) {
|
||||
/* && sent_packetnum == connection->osent_packetnum) */
|
||||
if (recv_packetnum == connection->orecv_packetnum && sent_packetnum == connection->osent_packetnum) {
|
||||
connection->status = LUDP_ESTABLISHED;
|
||||
connection->recv_counter = counter;
|
||||
++connection->send_counter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user