Fixed possible connection issue.

This commit is contained in:
irungentoo
2014-05-18 13:58:41 -04:00
parent d68197b895
commit 376eecafd3
+1 -1
View File
@@ -404,7 +404,7 @@ 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 -1;
return 0;
conn->connections[con_id].status = 1;
conn->connections[con_id].number = ~0;