diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 02:48:51 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 02:48:51 +0000 |
commit | 12a3f6dfa800fc717691d4c290a515260c857a1f (patch) | |
tree | 9e4e6eb0ea38aaf5c6e29aec45421e25c395f971 /apps | |
parent | c5ffe39902c6b87d2081e9566318f23727cef425 (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.c | 1 |
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(); |