Skip to content

Commit

Permalink
add cleanup on mod_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpaiu committed Dec 11, 2024
1 parent 72ff314 commit b4fcb1f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/janus/janus_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,14 @@ static int child_init(int rank)

static void mod_destroy(void)
{
/* TODO - destroy */
struct list_head *_, *__;
janus_connection *sock = NULL;

list_for_each_safe(_, __, janus_sockets) {
sock = list_entry(_, janus_connection, list);

janus_free_connection(sock);
}
}

static int w_janus_send_request(struct sip_msg *msg, str *janus_id,str *request, pv_spec_t *reply_spec)
Expand Down

0 comments on commit b4fcb1f

Please sign in to comment.