Skip to content

Commit

Permalink
Fix crash caused by TTL tracker being destroyed before websocket and …
Browse files Browse the repository at this point in the history
…its incoming threads. (#115)
  • Loading branch information
crienzo authored Sep 8, 2023
1 parent 055572c commit c8d3523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,11 +672,11 @@ SWCLT_DECLARE(void) swclt_conn_destroy(swclt_conn_t **conn)
if ((*conn)->blade_connect_rpl) {
BLADE_CONNECT_RPL_DESTROY(&(*conn)->blade_connect_rpl);
}
ttl_tracker_destroy(&(*conn)->ttl);
swclt_wss_destroy(&(*conn)->wss);
if ((*conn)->incoming_frame_pool) {
ks_thread_pool_destroy(&(*conn)->incoming_frame_pool);
}
ttl_tracker_destroy(&(*conn)->ttl);
ks_hash_destroy(&(*conn)->outstanding_requests);
ks_mutex_destroy(&(*conn)->failed_mutex);
ks_pool_free(conn);
Expand Down

0 comments on commit c8d3523

Please sign in to comment.