From 79f5b9b158240776440ff7dcec2e19a92e9bc1f7 Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Sun, 2 Jun 2024 16:15:20 +0200 Subject: [PATCH] feat: reduced time to wait before trying to connect to local address --- .../main/java/com/cappielloantonio/tempo/util/Preferences.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/cappielloantonio/tempo/util/Preferences.kt b/app/src/main/java/com/cappielloantonio/tempo/util/Preferences.kt index 688d3b3b..8c4c02d9 100644 --- a/app/src/main/java/com/cappielloantonio/tempo/util/Preferences.kt +++ b/app/src/main/java/com/cappielloantonio/tempo/util/Preferences.kt @@ -185,7 +185,7 @@ object Preferences { fun isServerSwitchable(): Boolean { return App.getInstance().preferences.getLong( NEXT_SERVER_SWITCH, 0 - ) + 600000 < System.currentTimeMillis() + ) + 60000 < System.currentTimeMillis() } @JvmStatic