Commit b0c35b4f authored by Vincent Pelletier's avatar Vincent Pelletier

Add a comment about duplicate code.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2006 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent bda44a22
......@@ -603,6 +603,9 @@ class MTClientConnection(ClientConnection):
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)
......
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