mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed some small TCP issues.
This commit is contained in:
parent
7ab4ae7a6e
commit
21e797ac90
|
@ -451,7 +451,7 @@ static int handle_TCP_packet(TCP_Client_Connection *conn, const uint8_t *data, u
|
|||
uint8_t con_id = data[1] - NUM_RESERVED_PORTS;
|
||||
|
||||
if (conn->connections[con_id].status != 1)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
conn->connections[con_id].status = 2;
|
||||
|
||||
|
@ -475,7 +475,7 @@ static int handle_TCP_packet(TCP_Client_Connection *conn, const uint8_t *data, u
|
|||
return 0;
|
||||
|
||||
if (conn->connections[con_id].status != 2)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
conn->connections[con_id].status = 1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user