From 01fcb9779aa48bdf31c222dd58e1cbe5c6077dfd Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Thu, 7 Aug 2003 03:48:00 +0000 Subject: Allow groups to be checked in reverse order, make musiconhold die on restart git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1269 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'res') diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 7dd88572b..d99d8bd49 100755 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -574,6 +574,8 @@ static void load_moh_classes(void) static void ast_moh_destroy(void) { struct mohclass *moh; + if (option_verbose > 1) + ast_verbose(VERBOSE_PREFIX_2 "Destroying any remaining musiconhold processes\n"); ast_pthread_mutex_lock(&moh_lock); moh = mohclasses; while(moh) { @@ -591,7 +593,7 @@ int load_module(void) int res; load_moh_classes(); res = ast_register_application(app0, moh0_exec, synopsis0, descrip0); - atexit(ast_moh_destroy); + ast_register_atexit(ast_moh_destroy); if (!res) res = ast_register_application(app1, moh1_exec, synopsis1, descrip1); if (!res) -- cgit v1.2.3