Commit a2e22eb1 authored by Vincent Pelletier's avatar Vincent Pelletier

Revert commit r264 and apply a modified version with same intent: "dispatch"...

Revert commit r264 and apply a modified version with same intent: "dispatch" method is used as an entry point to ClientEventHandler class, which is called by the thread the packet was dispatched to.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@271 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d595f33c
......@@ -41,8 +41,9 @@ class ClientEventHandler(EventHandler):
self.dispatcher = dispatcher
EventHandler.__init__(self)
def dispatch(self, conn, packet):
def packetReceived(self, conn, packet):
"""Redirect all received packet to dispatcher thread."""
EventHandler.packetReceived(self, conn, packet)
self.dispatcher.dispatch(conn, packet)
def _dealWithStorageFailure(self, conn, node, state):
......
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