]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure agent_tech is unregistered within unload_module(). It's in 1.2, but was...
authorBJ Weschke <bweschke@btwtech.com>
Fri, 16 Jun 2006 12:24:14 +0000 (12:24 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Fri, 16 Jun 2006 12:24:14 +0000 (12:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34461 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index fe0e04aba7a1b3dc44604a25d4e641c6ea9f3f6a..b3895c47ae057729969453cf07197294fcc44482 100644 (file)
@@ -2610,7 +2610,7 @@ static int unload_module(void *mod)
        }
        AST_LIST_UNLOCK(&agents);
        AST_LIST_HEAD_DESTROY(&agents);
-
+       ast_channel_unregister(&agent_tech);
        return 0;
 }