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

ShiftScheduler correction to initilize signal

parent 484ce818
...@@ -87,6 +87,7 @@ class ShiftScheduler(ObjectInterruption): ...@@ -87,6 +87,7 @@ class ShiftScheduler(ObjectInterruption):
if self.endUnfinished and len(self.victim.getActiveObjectQueue())==1 and (not self.victim.waitToDispose): if self.endUnfinished and len(self.victim.getActiveObjectQueue())==1 and (not self.victim.waitToDispose):
self.victim.isWorkingOnTheLastBeforeOffShift=True self.victim.isWorkingOnTheLastBeforeOffShift=True
yield self.victimEndedLastProcessing yield self.victimEndedLastProcessing
self.victimEndedLastProcessing=self.env.event()
self.interruptVictim() # interrupt processing operations if any self.interruptVictim() # interrupt processing operations if any
self.victim.onShift=False # get the victim off-shift self.victim.onShift=False # get the victim off-shift
......
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