Ensure Shutdown AMI event is still fired during Asterisk shutdown
authorMatthew Jordan <mjordan@digium.com>
Tue, 2 Oct 2012 21:26:27 +0000 (21:26 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 2 Oct 2012 21:26:27 +0000 (21:26 +0000)
commitbfe35ee0b0930795d0471f3b0a984a1616ffa54d
treeba83700cded9f10df9b5c5f2f714f0425243d3ce
parent0be8d5c64cf1a59d5de04c7c7c24f6624b95eede
Ensure Shutdown AMI event is still fired during Asterisk shutdown

Richard pointed out that having the manager dispose of itself gracefully
during shutdown meant that the Shutdown event will no longer get fired.
This patch moves the AMI event just prior to running the atexit callbacks.
........

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

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@374259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/asterisk.c