From a67571ee4f4903ba1f88453399964379b28f63df Mon Sep 17 00:00:00 2001 From: CappielloAntonio Date: Sun, 2 Jun 2024 16:21:29 +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 8c4c02d9..93f67145 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 - ) + 60000 < System.currentTimeMillis() + ) + 15000 < System.currentTimeMillis() } @JvmStatic