Skip to content
Snippets Groups Projects
Commit d4cd78e6 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Wait 1s between attempts to start network follower

parent ed1320ba
Branches
Tags
3 merge requests!84Version 2.92 build 629,!77v2.9 b627,!75FE-958: Fix registration errors
......@@ -31,7 +31,6 @@ import kotlin.random.Random.Default.nextInt
private const val MAX_NETWORK_RETRIES = 29
private const val NETWORK_POLL_INTERVAL_MS = 1000L
private const val GENERIC_ERROR_MSG = "Failed to connect to network. Please try again."
/**
* Encapsulates username registration logic.
......@@ -260,6 +259,7 @@ class UsernameRegistration @AssistedInject constructor(
onUsernameNextClicked()
}
} else {
delay(NETWORK_POLL_INTERVAL_MS)
Timber.d("Attempting to start network follower, attempt #${retries + 1}.")
connectToCmix(retries + 1)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment