Optimization to manager events.
authorJeff Peeler <jpeeler@digium.com>
Thu, 28 Jan 2010 22:37:15 +0000 (22:37 +0000)
committerJeff Peeler <jpeeler@digium.com>
Thu, 28 Jan 2010 22:37:15 +0000 (22:37 +0000)
commit80d3e91714c9664dec2da889fefcefa254884be0
tree255e254ebc32ba8dbd63b039c42ac02c87234776
parent397ec3328488c821df278c76aa966f5f419831d9
Optimization to manager events.

When potentially sending manager events, return immediately if there are no
sessions or hooks. Also, avoid locking the hooks list if it is empty.

(issue #16455)
Reported by: atis
Patches:
      manager_hooks_trunk.patch uploaded by atis (license 242)

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