Commit 9ca59fd5 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove useless constraint: we will only get response packets at this point, so...

Remove useless constraint: we will only get response packets at this point, so no need to check that again.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@914 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c8c996cd
...@@ -333,8 +333,7 @@ class Application(object): ...@@ -333,8 +333,7 @@ class Application(object):
raise ValueError, 'Unknown node type: %r' % ( raise ValueError, 'Unknown node type: %r' % (
node_type, ) node_type, )
handler.dispatch(conn, packet) handler.dispatch(conn, packet)
if target_conn is conn and msg_id == packet.getId() \ if target_conn is conn and msg_id == packet.getId():
and packet.getType() & 0x8000:
break break
def _askStorage(self, conn, packet, timeout=5, additional_timeout=30): def _askStorage(self, conn, packet, timeout=5, additional_timeout=30):
......
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