From: Russell Bryant Date: Fri, 18 May 2007 02:51:07 +0000 (+0000) Subject: Merged revisions 64868 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~2651 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ecad89b42d571f748e01bb92597ade1db65421c;p=thirdparty%2Fasterisk.git Merged revisions 64868 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64868 | russell | 2007-05-17 21:48:51 -0500 (Thu, 17 May 2007) | 5 lines Fix a small bug I noticed while working on something else. app_queue did not unregister its device state monitoring callback in unload_module(). So, this would make Asterisk crash on the first device state change after you unload the module. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64869 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 88a212931a..63722a6740 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -4705,6 +4705,7 @@ static int unload_module(void) res |= ast_custom_function_unregister(&queuemembercount_function); res |= ast_custom_function_unregister(&queuememberlist_function); res |= ast_custom_function_unregister(&queuewaitingcount_function); + ast_devstate_del(statechange_queue, NULL); ast_module_user_hangup_all();