srctree

Robin Linden parent 5b94690c 7dd67e4d
Set connection status to offline even without a clean shutdown

inlinesplit
domain/src/main/kotlin/tox/Tox.kt added: 2, removed: 2, total 0
@@ -70,6 +70,7 @@ class Tox @Inject constructor(
 
fun iterateForever() = launch {
running = true
userRepository.updateConnection(publicKey.string(), ConnectionStatus.None)
while (running || toxAvRunning) {
if (isBootstrapNeeded) {
try {
@@ -82,7 +83,6 @@ class Tox @Inject constructor(
tox.iterate()
delay(tox.iterationInterval())
}
userRepository.updateConnection(publicKey.string(), ConnectionStatus.None)
started = false
}