Skip to content
Snippets Groups Projects
Commit 7990b03e authored by Richard Mudgett's avatar Richard Mudgett
Browse files

Cleanup event on exit.

* 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
........

Merged revisions 377708 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 377709 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 377710 from http://svn.asterisk.org/svn/asterisk/branches/11


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f7954f54
Branches
Tags
No related merge requests found
...@@ -1817,6 +1817,8 @@ static void event_shutdown(void) ...@@ -1817,6 +1817,8 @@ static void event_shutdown(void)
struct ast_event_sub *sub; struct ast_event_sub *sub;
int i; int i;
ast_cli_unregister_multiple(event_cli, ARRAY_LEN(event_cli));
if (event_dispatcher) { if (event_dispatcher) {
event_dispatcher = ast_taskprocessor_unreference(event_dispatcher); event_dispatcher = ast_taskprocessor_unreference(event_dispatcher);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment