Skip to content

Commit

Permalink
rtprecv: detach from rtp/rtcp sockets on stop
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Oct 25, 2023
1 parent 291385c commit cc04bb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rtprecv.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ static int rtprecv_thread(void *arg)
err = re_main(NULL);

tmr_cancel(&rx->tmr);
udp_thread_detach(rtp_sock(rx->rtp));
udp_thread_detach(rtcp_sock(rx->rtp));
re_thread_close();
return err;
}
Expand Down

0 comments on commit cc04bb1

Please sign in to comment.