srctree

Robin Linden parent 99a8892d 9a26f57e
Warn when the Tox thread takes longer than Tox wants

inlinesplit
domain/src/main/kotlin/tox/Tox.kt added: 2, removed: 1, total 1
@@ -117,6 +117,7 @@ class Tox @Inject constructor(
tox.iterate()
val timeTaken = System.currentTimeMillis() - before
val iterationInterval = tox.iterationInterval()
if (timeTaken > iterationInterval) Log.w(TAG, "Tox thread overran: $timeTaken/$iterationInterval.")
delay(iterationInterval - timeTaken)
}
started = false