Commit 5f547613 authored by Aurel's avatar Aurel

setCell will automatically remove cell in DISCARDED_STATE so remove

useless code


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@574 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3633fc3d
...@@ -344,10 +344,7 @@ class PrimaryEventHandler(BaseClientEventHandler): ...@@ -344,10 +344,7 @@ class PrimaryEventHandler(BaseClientEventHandler):
node.setState(TEMPORARILY_DOWN_STATE) node.setState(TEMPORARILY_DOWN_STATE)
nm.add(node) nm.add(node)
# FIXME: Why FEEDING_STATE cells are kept in the PT ? # FIXME: Why FEEDING_STATE cells are kept in the PT ?
if state == DISCARDED_STATE: pt.setCell(offset, node, state)
pt.removeCell(offset, node)
else:
pt.setCell(offset, node, state)
def handleAnswerNewTID(self, conn, packet, tid): def handleAnswerNewTID(self, conn, packet, tid):
app = self.app app = self.app
......
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