router corrected not to assign operators to machines that are offshift

parent 38c827f0
......@@ -254,7 +254,7 @@ class Router(ObjectInterruption):
for entity in G.pendingEntities:
# if the entity resides in a machine that waits for load operation
if entity.currentStation in G.MachineList:
if entity.currentStation.broker.waitForOperator:
if entity.currentStation.broker.waitForOperator and entity.currentStation.checkIfActive():
self.pendingMachines.append(entity.currentStation)
self.pending.append(entity)
# otherwise proceed only if the entity is at the head of the "queue" it resides
......
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