From d10a30fc0daeb44e1dba4829cb370df788d29d30 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 20 Oct 2022 05:30:06 +0200 Subject: [PATCH] [MIRROR] Automatic TGS DMAPI Update [MDB IGNORE] (#17005) * Automatic TGS DMAPI Update (#70662) Update TGS DMAPI Co-authored-by: tgstation-server * Automatic TGS DMAPI Update Co-authored-by: orange man <61334995+comfyorange@users.noreply.github.com> Co-authored-by: tgstation-server --- code/modules/tgs/v4/api.dm | 6 +++--- code/modules/tgs/v5/api.dm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/tgs/v4/api.dm b/code/modules/tgs/v4/api.dm index caa7fac8686..0e37a7aa24c 100644 --- a/code/modules/tgs/v4/api.dm +++ b/code/modules/tgs/v4/api.dm @@ -181,7 +181,7 @@ var/json = json_encode(data) while(requesting_new_port && !override_requesting_new_port) - sleep(1 TICKS) + sleep(1) //we need some port open at this point to facilitate return communication if(!world.port) @@ -209,7 +209,7 @@ requesting_new_port = FALSE while(export_lock) - sleep(1 TICKS) + sleep(1) export_lock = TRUE last_interop_response = null @@ -217,7 +217,7 @@ text2file(json, server_commands_json_path) for(var/I = 0; I < EXPORT_TIMEOUT_DS && !last_interop_response; ++I) - sleep(1 TICKS) + sleep(1) if(!last_interop_response) TGS_ERROR_LOG("Failed to get export result for: [json]") diff --git a/code/modules/tgs/v5/api.dm b/code/modules/tgs/v5/api.dm index e45a9213fe8..572944ed401 100644 --- a/code/modules/tgs/v5/api.dm +++ b/code/modules/tgs/v5/api.dm @@ -92,7 +92,7 @@ /datum/tgs_api/v5/proc/RequireInitialBridgeResponse() while(!version) - sleep(1 TICKS) + sleep(1) /datum/tgs_api/v5/OnInitializationComplete() Bridge(DMAPI5_BRIDGE_COMMAND_PRIME)