2-way server heartbeats (plus bonus DMAPI update) (#21101)

* 2-way server heartbeats

* Upgrades people, upgrades

* DMAPI bump again

* How did this compile

* BALLS
This commit is contained in:
AffectedArc07
2023-06-17 11:00:01 +01:00
committed by GitHub
parent cd3c1c4919
commit 9ccb9bddc4
21 changed files with 811 additions and 256 deletions
+3
View File
@@ -10,6 +10,7 @@ GLOBAL_VAR_INIT(slower_restart, FALSE)
/datum/tgs_event_handler/impl
var/datum/timedevent/reattach_timer
receive_health_checks = TRUE
/datum/tgs_event_handler/impl/HandleEvent(event_code, ...)
switch(event_code)
@@ -48,6 +49,8 @@ GLOBAL_VAR_INIT(slower_restart, FALSE)
if(reattach_timer)
deltimer(reattach_timer)
reattach_timer = null
if(TGS_EVENT_HEALTH_CHECK)
SSheartbeat.last_heartbeat = REALTIMEOFDAY
/datum/tgs_event_handler/impl/proc/LateOnReattach()
server_announce_adminonly("\[Warning] TGS hasn't notified us of it coming back for a full minute! Is there a problem?")