mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed TCP client connection isse.
This commit is contained in:
parent
d573271f03
commit
8cb3ddda8b
|
@ -446,6 +446,9 @@ static int handle_TCP_packet(TCP_Client_Connection *conn, uint8_t *data, uint16_
|
||||||
|
|
||||||
uint8_t con_id = data[1] - NUM_RESERVED_PORTS;
|
uint8_t con_id = data[1] - NUM_RESERVED_PORTS;
|
||||||
|
|
||||||
|
if (conn->connections[con_id].status == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (conn->connections[con_id].status != 2)
|
if (conn->connections[con_id].status != 2)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user