Dont sleep when responding to events in DMAPI test

This commit is contained in:
Jordan Dominion
2023-07-14 14:35:36 -04:00
parent 6682796514
commit 435ae128b2
+2 -2
View File
@@ -179,13 +179,13 @@ var/received_health_check = FALSE
/datum/tgs_event_handler/impl/HandleEvent(event_code, ...)
set waitfor = FALSE
world.TgsChatBroadcast(new /datum/tgs_message_content("Recieved event: `[json_encode(args)]`"))
if(event_code == TGS_EVENT_HEALTH_CHECK)
received_health_check = TRUE
else if(event_code == TGS_EVENT_WATCHDOG_DETACH)
DelayCheckDetach()
world.TgsChatBroadcast(new /datum/tgs_message_content("Recieved event: `[json_encode(args)]`"))
/proc/DelayCheckDetach()
sleep(1)
// hack hack, calling world.TgsChatChannelInfo() will try to delay until the channels come back