Skip to content

Commit

Permalink
Fix transport loop (#3773)
Browse files Browse the repository at this point in the history
Transport "loop" need set the `base.grp_lock`, as also shown in
`transport_adapter_sample.c` to have destroying of the loop transport
working.

Issue #3771
  • Loading branch information
wosrediinanatour authored Nov 24, 2023
1 parent 9287ac2 commit f9ed97b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pjmedia/src/pjmedia/transport_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ pjmedia_transport_loop_create2(pjmedia_endpt *endpt,
if (status != PJ_SUCCESS)
return status;

tp->base.grp_lock = grp_lock;
pj_grp_lock_add_ref(grp_lock);
pj_grp_lock_add_handler(grp_lock, pool, tp, &tp_loop_on_destroy);

Expand Down

0 comments on commit f9ed97b

Please sign in to comment.