From: Joshua Colp Date: Wed, 17 Sep 2014 18:02:21 +0000 (+0000) Subject: res_rtp_asterisk: Ensure that the thread terminating pj stuff is registered. X-Git-Tag: 11.13.0-rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea0c386000404f3f9ce29ab547755589fd720e9;p=thirdparty%2Fasterisk.git res_rtp_asterisk: Ensure that the thread terminating pj stuff is registered. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@423253 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index ae69715c28..cc1325c208 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -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);