mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 18:03:34 +00:00
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@377710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1817,6 +1817,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user