diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 02:51:07 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 02:51:07 +0000 |
commit | 719888c930623949eb0c77ecc2e1e2ca0d891b9a (patch) | |
tree | 37b652ba0d8a5d096288d58920981cb092c7305f | |
parent | 47e5d1ca0bd0bf5353f09d31ab5f8d505b2f261f (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@64869 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 88a212931..63722a674 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(); |