diff options
author | Uros Majstorovic <majstor@majstor.org> | 2017-08-22 05:44:21 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2017-08-22 05:44:21 +0200 |
commit | 680922c97ca94e832e75b20f5aa22a00a6a80420 (patch) | |
tree | 52c2427cc96782d2cee5541a29296d62ef26f2fd /code/core/msgq.c | |
parent | 050bf97c2dc6c22e7b3134e281ee892e5351439f (diff) |
seq implemented; conn reset implemented
Diffstat (limited to 'code/core/msgq.c')
-rw-r--r-- | code/core/msgq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/code/core/msgq.c b/code/core/msgq.c index 4c1252b..7356eb8 100644 --- a/code/core/msgq.c +++ b/code/core/msgq.c @@ -89,7 +89,7 @@ int ecp_conn_msgq_push(ECPConnection *conn, ecp_seq_t seq, unsigned char mtype) msgq->seq_msg[mtype][MSG_IDX_MASK(msgq->idx_w[mtype])] = seq; msgq->idx_w[mtype]++; - if (ECP_RBUF_SEQ_LT(msgq->seq_max, seq)) msgq->seq_max = seq; + if (ECP_SEQ_LT(msgq->seq_max, seq)) msgq->seq_max = seq; return ECP_OK; } |