Agent: Implement _check_for_stop() in AutomatedMaster

This commit is contained in:
Mike Salvatore 2021-12-01 13:47:17 -05:00
parent 0456d695c4
commit a2bba6a025
1 changed files with 3 additions and 1 deletions

View File

@ -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")