forked from p15670423/monkey
Agent: Implement _check_for_stop() in AutomatedMaster
This commit is contained in:
parent
0456d695c4
commit
a2bba6a025
|
@ -34,7 +34,9 @@ class AutomatedMaster(IMaster):
|
|||
logger.info("The simulation has been shutdown.")
|
||||
|
||||
def _check_for_stop(self):
|
||||
pass
|
||||
if self._control_channel.should_agent_stop():
|
||||
logger.debug('Received the "stop" signal from the Island')
|
||||
self._stop.set()
|
||||
|
||||
def terminate(self):
|
||||
logger.info("Stopping automated breach and attack simulation")
|
||||
|
|
Loading…
Reference in New Issue