Skip to content

Commit

Permalink
Release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanglst committed Mar 14, 2023
1 parent 3db190c commit fbde619
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/liblsquic/lsquic_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,9 +1187,12 @@ promote_mini_conn (lsquic_engine_t *engine, lsquic_conn_t *mini_conn,
if (mini_conn->cn_flags & LSCONN_HASHED)
remove_conn_from_hash(engine, mini_conn);

lsquic_mh_insert(&engine->conns_tickable, new_conn,
new_conn->cn_last_ticked);
engine_incref_conn(new_conn, LSCONN_TICKABLE);
if (!(new_conn->cn_flags & LSCONN_TICKABLE))
{
lsquic_mh_insert(&engine->conns_tickable, new_conn,
new_conn->cn_last_ticked);
engine_incref_conn(new_conn, LSCONN_TICKABLE);
}
return 0;
}
return -1;
Expand Down

0 comments on commit fbde619

Please sign in to comment.