mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-09 15:13:58 +01:00
Dont sleep when responding to events in DMAPI test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user