Skip to content

Commit c2ef20e

Browse files
PM-34193: bug: Unlock vault from Never-Lock should be on io thread (#6727)
1 parent d3f5621 commit c2ef20e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/kotlin/com/x8bit/bitwarden/data/vault/manager/VaultLockManagerImpl.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ class VaultLockManagerImpl(
9898
context: Context,
9999
) : VaultLockManager {
100100
private val unconfinedScope = CoroutineScope(dispatcherManager.unconfined)
101+
private val ioScope = CoroutineScope(dispatcherManager.io)
101102

102103
/**
103104
* This [Map] tracks all active timeout [Job]s that are running and their associated data using
@@ -478,7 +479,7 @@ class VaultLockManagerImpl(
478479
.map { userId -> vaultTimeoutChangesForUserFlow(userId = userId) }
479480
.merge()
480481
}
481-
.launchIn(unconfinedScope)
482+
.launchIn(ioScope)
482483
}
483484

484485
private fun observeUserLogoutResults() {

0 commit comments

Comments
 (0)