Skip to content

Commit 35ae178

Browse files
Increase failover timeout from 5s to 8s
1 parent 163d49c commit 35ae178

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

V2rayNG/app/src/main/java/com/kiktor/v2whitelist/handler/SmartConnectManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ object SmartConnectManager {
176176
private fun startFailoverTimer(context: Context) {
177177
failoverJob?.cancel()
178178
failoverJob = CoroutineScope(Dispatchers.Main).launch {
179-
delay(5000)
179+
delay(8000)
180180
if (!V2RayServiceManager.isRunning()) {
181-
Log.w(AppConfig.TAG, "Connection failed within 5s, triggering failover")
181+
Log.w(AppConfig.TAG, "Connection failed within 8s, triggering failover")
182182
switchServer(context)
183183
}
184184
}

0 commit comments

Comments
 (0)