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

ShiftScheduler correction to initilize signal

parent 484ce818
......@@ -86,7 +86,8 @@ class ShiftScheduler(ObjectInterruption):
yield self.env.timeout(float(self.remainingShiftPattern[0][1]-self.env.now)) # wait until the shift is over
if self.endUnfinished and len(self.victim.getActiveObjectQueue())==1 and (not self.victim.waitToDispose):
self.victim.isWorkingOnTheLastBeforeOffShift=True
yield self.victimEndedLastProcessing
yield self.victimEndedLastProcessing
self.victimEndedLastProcessing=self.env.event()
self.interruptVictim() # interrupt processing operations if any
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