mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 05:47:46 +00:00
feat: add call related permissions and more network handover tests
This commit is contained in:
@@ -4,7 +4,7 @@ import nl.komponents.kovenant.Promise
|
||||
import nl.komponents.kovenant.deferred
|
||||
import java.util.*
|
||||
|
||||
fun <V, T : Promise<V, Exception>> retryIfNeeded(maxRetryCount: Int, retryInterval: Long = 1 * 1000, body: () -> T): Promise<V, Exception> {
|
||||
fun <V, T : Promise<V, Exception>> retryIfNeeded(maxRetryCount: Int, retryInterval: Long = 1000L, body: () -> T): Promise<V, Exception> {
|
||||
var retryCount = 0
|
||||
val deferred = deferred<V, Exception>()
|
||||
val thread = Thread.currentThread()
|
||||
|
Reference in New Issue
Block a user