]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Ensure that the thread terminating pj stuff is registered.
authorJoshua Colp <jcolp@digium.com>
Wed, 17 Sep 2014 18:02:21 +0000 (18:02 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 17 Sep 2014 18:02:21 +0000 (18:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@423253 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_rtp_asterisk.c

index ae69715c2821a691a517cc11179e17e265df7720..cc1325c208ee1f8b65a2f2473163ced7d3b969fa 100644 (file)
@@ -5148,6 +5148,8 @@ static int reload_module(void)
 #ifdef USE_PJPROJECT
 static void rtp_terminate_pjproject(void)
 {
+       pj_thread_register_check();
+
        if (timer_thread) {
                timer_terminate = 1;
                pj_thread_join(timer_thread);