Fixed TCP client connection isse.

This commit is contained in:
irungentoo 2014-05-18 12:59:21 -04:00
parent d573271f03
commit 8cb3ddda8b
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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;
if (conn->connections[con_id].status == 0)
return 0;
if (conn->connections[con_id].status != 2)
return -1;