From abb2d0724917f872bf59bddf4f3beee38d4a4e45 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 18 Jun 2010 15:24:05 +0000 Subject: [PATCH] - fix problem when building callback list, patch suggested in mailinglist thread https://sourceforge.net/mailarchive/forum.php?thread_name=1209418634.5888.33.camel%40solo.digium.internal&forum_name=pyst-users git-svn-id: https://pyst.svn.sourceforge.net/svnroot/pyst/pyst/trunk@11 01a3061f-1c3a-49da-a2a0-fa5697faa6a0 --- asterisk/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asterisk/manager.py b/asterisk/manager.py index e4870b6..fe687bf 100644 --- a/asterisk/manager.py +++ b/asterisk/manager.py @@ -383,8 +383,8 @@ class Manager(object): # dispatch our events # first build a list of the functions to execute - callbacks = self._event_callbacks.get(ev.name, []) - callbacks.extend(self._event_callbacks.get('*', [])) + callbacks = (self._event_callbacks.get(ev.name, []) + + self._event_callbacks.get('*', [])) # now execute the functions for callback in callbacks: