mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Fix #2258 : Potential runtimeError when emiting event
This commit is contained in:
parent
01c501b172
commit
8735fe14a8
@ -509,7 +509,7 @@ class RPCServer(component.Component):
|
|||||||
"""
|
"""
|
||||||
log.debug("intevents: %s", self.factory.interested_events)
|
log.debug("intevents: %s", self.factory.interested_events)
|
||||||
# Find sessions interested in this event
|
# 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:
|
if event.name in interest:
|
||||||
log.debug("Emit Event: %s %s", event.name, event.args)
|
log.debug("Emit Event: %s %s", event.name, event.args)
|
||||||
# This session is interested so send a RPC_EVENT
|
# This session is interested so send a RPC_EVENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user