Skip to content
Snippets Groups Projects
Commit ecabadf2 authored by BJ Weschke's avatar BJ Weschke
Browse files

Fixed per kpfleming's suggestion to asterisk-dev.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 35a2f14d
Branches
Tags
No related merge requests found
...@@ -2586,6 +2586,7 @@ static int unload_module(void *mod) ...@@ -2586,6 +2586,7 @@ static int unload_module(void *mod)
{ {
struct agent_pvt *p; struct agent_pvt *p;
/* First, take us out of the channel loop */ /* First, take us out of the channel loop */
ast_channel_unregister(&agent_tech);
/* Unregister dialplan functions */ /* Unregister dialplan functions */
ast_custom_function_unregister(&agent_function); ast_custom_function_unregister(&agent_function);
/* Unregister CLI commands */ /* Unregister CLI commands */
...@@ -2610,7 +2611,6 @@ static int unload_module(void *mod) ...@@ -2610,7 +2611,6 @@ static int unload_module(void *mod)
} }
AST_LIST_UNLOCK(&agents); AST_LIST_UNLOCK(&agents);
AST_LIST_HEAD_DESTROY(&agents); AST_LIST_HEAD_DESTROY(&agents);
ast_channel_unregister(&agent_tech);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment