Merged revisions 151905 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Sat, 25 Oct 2008 11:02:11 +0000 (11:02 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sat, 25 Oct 2008 11:02:11 +0000 (11:02 +0000)
commit316f3897a83fe6797388b7e067c4042f5dd8a3f6
treef65b5bfcb7bdfa412858db3f93f7a7947ad9df10
parentc74e85a23a86dde77062cbcd51b050723ef98f9f
Merged revisions 151905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r151905 | russell | 2008-10-25 05:59:02 -0500 (Sat, 25 Oct 2008) | 8 lines

Move AMI initialization to occur after loading modules.  This prevents a
deadlock when someone tries to initiate a module reload from the AMI just
as Asterisk is starting.

(closes issue #13778)
Reported by: hotsblanc
Fix suggested by hotsblanc

........

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