]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Cleanup event on exit.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 11 Dec 2012 00:52:37 +0000 (00:52 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 11 Dec 2012 00:52:37 +0000 (00:52 +0000)
* Cleanup CLI commands on exit.

(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
      event_shutdown-10-only.patch (license #5909) patch uploaded by Corey Farrell
      event_shutdown-1_8-11-trunk.patch (license #5909) patch uploaded by Corey Farrell

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

main/event.c

index c9acb7022984911358e2c55409ccfb03214120f6..328dc1e7a45b1fc3217ae5aa56261acc990ca25f 100644 (file)
@@ -1783,6 +1783,8 @@ static void event_shutdown(void)
        struct ast_event_sub *sub;
        int i;
 
+       ast_cli_unregister_multiple(event_cli, ARRAY_LEN(event_cli));
+
        if (event_dispatcher) {
                event_dispatcher = ast_taskprocessor_unreference(event_dispatcher);
        }