Commit 07ccfacc authored by Vincent Pelletier's avatar Vincent Pelletier

Only update parser state when it is not set.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2003 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 532ab9cd
...@@ -1622,7 +1622,8 @@ class PacketRegistry(dict): ...@@ -1622,7 +1622,8 @@ class PacketRegistry(dict):
data = buf.read(msg_len) data = buf.read(msg_len)
if data is None: if data is None:
# Not enough. # Not enough.
state_container.set((msg_id, packet_klass, msg_len)) if state is None:
state_container.set((msg_id, packet_klass, msg_len))
return None return None
if state: if state:
state_container.clear() state_container.clear()
......
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