- 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-fa5697faa6a0develop
parent
08d7dc585b
commit
abb2d07249
|
@ -383,8 +383,8 @@ class Manager(object):
|
||||||
# dispatch our events
|
# dispatch our events
|
||||||
|
|
||||||
# first build a list of the functions to execute
|
# first build a list of the functions to execute
|
||||||
callbacks = self._event_callbacks.get(ev.name, [])
|
callbacks = (self._event_callbacks.get(ev.name, [])
|
||||||
callbacks.extend(self._event_callbacks.get('*', []))
|
+ self._event_callbacks.get('*', []))
|
||||||
|
|
||||||
# now execute the functions
|
# now execute the functions
|
||||||
for callback in callbacks:
|
for callback in callbacks:
|
||||||
|
|
Loading…
Reference in New Issue