PM-34193: bug: Unlock vault from Never-Lock should be on io thread (#6727)

This commit is contained in:
David Perez
2026-03-27 13:01:52 -05:00
committed by GitHub
parent d3f5621f40
commit c2ef20e1ed

View File

@@ -98,6 +98,7 @@ class VaultLockManagerImpl(
context: Context,
) : VaultLockManager {
private val unconfinedScope = CoroutineScope(dispatcherManager.unconfined)
private val ioScope = CoroutineScope(dispatcherManager.io)
/**
* This [Map] tracks all active timeout [Job]s that are running and their associated data using
@@ -478,7 +479,7 @@ class VaultLockManagerImpl(
.map { userId -> vaultTimeoutChangesForUserFlow(userId = userId) }
.merge()
}
.launchIn(unconfinedScope)
.launchIn(ioScope)
}
private fun observeUserLogoutResults() {