aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
index cda8138e..b66e3f72 100644
--- a/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
+++ b/format-common/src/main/kotlin/app/passwordstore/data/passfile/PasswordEntry.kt
@@ -15,6 +15,7 @@ import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import kotlin.collections.set
import kotlin.coroutines.coroutineContext
+import kotlin.time.Duration.Companion.milliseconds
import kotlin.time.Duration.Companion.seconds
import kotlin.time.ExperimentalTime
import kotlinx.coroutines.awaitCancellation
@@ -63,7 +64,7 @@ constructor(
do {
val otp = calculateTotp()
emit(otp)
- delay(ONE_SECOND.seconds)
+ delay(ONE_SECOND.milliseconds)
} while (coroutineContext.isActive)
} else {
awaitCancellation()