[Neo-report] r2003 vincent - /trunk/neo/protocol.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 22 16:37:47 CEST 2010


Author: vincent
Date: Thu Apr 22 16:37:45 2010
New Revision: 2003

Log:
Only update parser state when it is not set.

Modified:
    trunk/neo/protocol.py

Modified: trunk/neo/protocol.py
==============================================================================
--- trunk/neo/protocol.py [iso-8859-1] (original)
+++ trunk/neo/protocol.py [iso-8859-1] Thu Apr 22 16:37:45 2010
@@ -1622,7 +1622,8 @@
         data = buf.read(msg_len)
         if data is None:
             # 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
         if state:
             state_container.clear()





More information about the Neo-report mailing list