mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
Don't bother calling AST_RWLIST_EMPTY on a list before AST_RWLIST_TRAVERSE, it's just a double check.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@76710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2657,10 +2657,8 @@ int __manager_event(int category, const char *event,
|
||||
AST_LIST_UNLOCK(&sessions);
|
||||
|
||||
AST_RWLIST_RDLOCK(&manager_hooks);
|
||||
if (!AST_RWLIST_EMPTY(&manager_hooks)) {
|
||||
AST_RWLIST_TRAVERSE(&manager_hooks, hook, list) {
|
||||
hook->helper(category, event, buf->str);
|
||||
}
|
||||
AST_RWLIST_TRAVERSE(&manager_hooks, hook, list) {
|
||||
hook->helper(category, event, buf->str);
|
||||
}
|
||||
AST_RWLIST_UNLOCK(&manager_hooks);
|
||||
|
||||
|
Reference in New Issue
Block a user