Skip to content

Commit

Permalink
removes a workaround in the tgs event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Dec 15, 2023
1 parent ccaa195 commit 208224c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions code/datums/tgs_event_handler.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,13 @@
message_admins("TGS: Instance renamed to from [world.TgsInstanceName()] to [args[2]]")
if(TGS_EVENT_COMPILE_START)
message_admins("TGS: Deployment started, new game version incoming...")
if(world.system_type == UNIX && SSredis.connected)
SSredis.disconnect(TGS_COMPILE)
if(TGS_EVENT_COMPILE_CANCELLED)
message_admins("TGS: Deployment cancelled!")
if(world.system_type == UNIX && CONFIG_GET(flag/redis_enabled) && !SSredis.connected)
SSredis.reconnect()
if(TGS_EVENT_COMPILE_FAILURE)
message_admins("TGS: Deployment failed!")
if(world.system_type == UNIX && CONFIG_GET(flag/redis_enabled) && !SSredis.connected)
SSredis.reconnect()
if(TGS_EVENT_DEPLOYMENT_COMPLETE)
message_admins("TGS: Deployment complete!")
to_chat(world, SPAN_BOLDANNOUNCE("Server updated, changes will be applied on the next round..."))
if(world.system_type == UNIX && CONFIG_GET(flag/redis_enabled) && !SSredis.connected)
SSredis.reconnect()
if(TGS_EVENT_WATCHDOG_DETACH)
message_admins("TGS restarting...")
reattach_timer = addtimer(CALLBACK(src, PROC_REF(LateOnReattach)), 1 MINUTES, TIMER_STOPPABLE)
Expand Down

0 comments on commit 208224c

Please sign in to comment.