stop a session from subscribing to the same event more than once server side

This commit is contained in:
Damien Churchill 2009-09-14 16:04:52 +00:00
parent fc1b1a6aa8
commit 3c02a499a5
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ class EventQueue(object):
client.register_event_handler(event, on_event)
self.__handlers[event] = on_event
self.__events[event] = [listener_id]
else:
elif listener_id not in self.__events[event]:
self.__events[event].append(listener_id)
def get_events(self, listener_id):