summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/common/events/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/common/events/client.py b/src/leap/common/events/client.py
index 6b234a1..0706fe3 100644
--- a/src/leap/common/events/client.py
+++ b/src/leap/common/events/client.py
@@ -184,7 +184,7 @@ class EventsClient(object):
:type msg: list(str)
"""
logger.debug("Handling event %s..." % event)
- for uid in self._callbacks[event]:
+ for uid in self._callbacks[event].keys():
callback = self._callbacks[event][uid]
logger.debug("Executing callback %s." % uid)
callback(event, *content)
@@ -352,7 +352,6 @@ class EventsClientThread(threading.Thread, EventsClient):
"""
self._sub.socket.setsockopt(zmq.SUBSCRIBE, tag)
-
def _unsubscribe(self, tag):
"""
Unsubscribe from a tag on the zmq SUB socket.