#2689 Fixed up Pytests and confirmed functionality before merging from dev.

This commit is contained in:
Archer Bowen
2024-08-07 14:16:50 +01:00
parent afa4d2b946
commit b1baf023d6
4 changed files with 77 additions and 58 deletions

View File

@@ -390,7 +390,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.10.12"
}
},
"nbformat": 4,

View File

@@ -380,6 +380,7 @@ class C2Beacon(AbstractC2, identifier="C2Beacon"):
self.keep_alive_inactivity += 1
if not self._check_c2_connection(timestep):
self.sys_log.error(f"{self.name}: Connection Severed - Application Closing.")
self.c2_connection_active = False
self.clear_connections()
# TODO: Shouldn't this close() method also set the health state to 'UNUSED'?
self.close()