Commit 1be82862 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Move packet decoding method at module level instead of Packet class as it was

done for encoding.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@500 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent d9b88d8b
...@@ -209,7 +209,7 @@ class Connection(BaseConnection): ...@@ -209,7 +209,7 @@ class Connection(BaseConnection):
while 1: while 1:
packet = None packet = None
try: try:
packet = Packet.parse(self.read_buf) packet = protocol.parse(self.read_buf)
except PacketMalformedError, msg: except PacketMalformedError, msg:
self.handler.packetMalformed(self, packet, msg) self.handler.packetMalformed(self, packet, msg)
return return
......
This diff is collapsed.
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