Ensure that process recreation also use the restoreMutex

This commit is contained in:
Benoit Marty
2024-06-18 18:33:04 +02:00
parent 4332357e76
commit 874bf5b901
@@ -74,7 +74,7 @@ class MatrixClientsHolder @Inject constructor(private val authenticationService:
// Not ideal but should only happens in case of process recreation. This ensure we restore all the active sessions before restoring the node graphs. // Not ideal but should only happens in case of process recreation. This ensure we restore all the active sessions before restoring the node graphs.
runBlocking { runBlocking {
sessionIds.forEach { sessionId -> sessionIds.forEach { sessionId ->
restore(sessionId) getOrRestore(sessionId)
} }
} }
} }