diff --git a/src/client.c b/src/client.c index 53680620..fbd286c5 100644 --- a/src/client.c +++ b/src/client.c @@ -305,14 +305,13 @@ int trilogy_connect_send_socket(trilogy_conn_t *conn, trilogy_sock_t *sock) return rc; conn->socket = sock; + conn->packet_parser.sequence_number = 0; + return TRILOGY_OK; } int trilogy_connect_recv(trilogy_conn_t *conn, trilogy_handshake_t *handshake_out) { - // reset the sequence number with each connect recv attempt - conn->packet_parser.sequence_number = 0; - int rc = read_packet(conn); if (rc < 0) {