Commit cf768b3d authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

dismantle haveToDispose enhanced in order to update the receiver

parent ebe3737c
...@@ -154,9 +154,14 @@ class Dismantle(CoreObject): ...@@ -154,9 +154,14 @@ class Dismantle(CoreObject):
#according to the caller return true or false #according to the caller return true or false
if thecaller in self.nextPart: if thecaller in self.nextPart:
return len(self.getActiveObjectQueue())>1 and self.waitToDisposePart if len(self.getActiveObjectQueue())>1 and self.waitToDisposePart:
self.receiver=thecaller
return True
elif thecaller in self.nextFrame: elif thecaller in self.nextFrame:
return len(self.getActiveObjectQueue())==1 and self.waitToDisposeFrame if len(self.getActiveObjectQueue())==1 and self.waitToDisposeFrame:
self.receiver=thecaller
return True
return False
#checks if the frame is emptied #checks if the frame is emptied
def frameIsEmpty(self): def frameIsEmpty(self):
......
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