aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 02:48:51 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 02:48:51 +0000
commit12a3f6dfa800fc717691d4c290a515260c857a1f (patch)
tree9e4e6eb0ea38aaf5c6e29aec45421e25c395f971 /apps
parentc5ffe39902c6b87d2081e9566318f23727cef425 (diff)
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/branches/1.4@64868 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 0f9eef126..c21b36bd1 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4469,6 +4469,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();