[Neo-report] r2006 vincent - /trunk/neo/connection.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 22 16:37:56 CEST 2010
Author: vincent
Date: Thu Apr 22 16:37:56 2010
New Revision: 2006
Log:
Add a comment about duplicate code.
Modified:
trunk/neo/connection.py
Modified: trunk/neo/connection.py
==============================================================================
--- trunk/neo/connection.py [iso-8859-1] (original)
+++ trunk/neo/connection.py [iso-8859-1] Thu Apr 22 16:37:56 2010
@@ -603,6 +603,9 @@
def ask(self, packet, timeout=CRITICAL_TIMEOUT):
self.lock()
try:
+ # XXX: Here, we duplicate Connection.ask because we need to call
+ # self.dispatcher.register after setId is called and before
+ # _addPacket is called.
msg_id = self._getNextId()
packet.setId(msg_id)
self.dispatcher.register(self, msg_id, self._local_var.queue)
More information about the Neo-report
mailing list