Commit 1e1b0263 authored by Aurel's avatar Aurel

optimization


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@194 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 63b4c0b1
...@@ -41,7 +41,7 @@ class Dispatcher(Thread): ...@@ -41,7 +41,7 @@ class Dispatcher(Thread):
def registered(self, uuid): def registered(self, uuid):
"""Check if a connection is registered into message table.""" """Check if a connection is registered into message table."""
for conn_uuid, msg_id in self.message_table.keys(): for conn_uuid, msg_id in self.message_table.iterkeys():
if uuid == conn_uuid: if uuid == conn_uuid:
return True return True
return False return False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment