]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix CCSS CLI commands and logger level not unregistered.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 17:05:40 +0000 (17:05 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 17:05:40 +0000 (17:05 +0000)
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
      ccss-cleanup-all.patch (license #5909) patch uploaded by Corey Farrell

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@377037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/ccss.c

index 9d1a8bf5640434a517433262311beeb354f04f3e..436d3d2921f4d8e3e5e92d5d99aec412295142bd 100644 (file)
@@ -4317,6 +4317,8 @@ static void cc_shutdown(void)
        ast_cc_monitor_unregister(&generic_monitor_cbs);
        ast_unregister_application(cccancel_app);
        ast_unregister_application(ccreq_app);
+       ast_logger_unregister_level(CC_LOGGER_LEVEL_NAME);
+       ast_cli_unregister_multiple(cc_cli, ARRAY_LEN(cc_cli));
 
        if (cc_sched_thread) {
                cc_sched_thread = ast_sched_thread_destroy(cc_sched_thread);