Commit 1d489525 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correct check in broker

parent 9e9779e9
......@@ -184,7 +184,7 @@ class Broker(ObjectInterruption):
self.isCalled=self.env.event()
# The operator is released (the router is not called in the case of skilled ops that work constantly on the same machine)
if not self.victim.checkForDedicatedOperators():
if not self.victim.currentOperator.operatorDedicatedTo==self.victim:
if not self.victim.isOperated():
# signal the other brokers waiting for the same operators that they are now free
# also signal the stations that were not requested to receive because the operator was occupied
......
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