Fix #2258 : Potential runtimeError when emiting event

This commit is contained in:
Calum Lind 2013-02-05 18:56:18 +00:00
parent 12365241a5
commit b0d78da13b
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ class RPCServer(component.Component):
"""
log.debug("intevents: %s", self.factory.interested_events)
# Find sessions interested in this event
for session_id, interest in self.factory.interested_events.iteritems():
for session_id, interest in self.factory.interested_events.items():
if event.name in interest:
log.debug("Emit Event: %s %s", event.name, event.args)
# This session is interested so send a RPC_EVENT