From 685dc787544ccb4872a289681cf65522e77041f3 Mon Sep 17 00:00:00 2001 From: Adam Wisher <37659188+mrwish7@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:50:32 +0100 Subject: [PATCH] Don't check Es mode for low latitudes Don't worry about checking for sp.E mode if the server location is at a latitude below EU/NA, as no data is available --- server/tx_search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tx_search.js b/server/tx_search.js index 998db7d..d3f00c0 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -97,7 +97,7 @@ function checkEs() { if (now - esSwitchCache.lastCheck < esFetchInterval) { esSwitch = esSwitchCache.esSwitch; - } else { + } else if (serverConfig.identification.lat > 20) { esSwitchCache.lastCheck = now; fetch(url) .then(response => response.json())