From bd18644c0de6e9943919d8dfb76524974d2c9f25 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 8 Sep 2024 20:22:18 +0200 Subject: [PATCH] Calling mayRetrieveAutomaticallyIfUserEnteredDecoupledTan() out of loop. Should make no difference but should sound more logic --- .../kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt index aa27bd42..02fa5a97 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt @@ -384,10 +384,10 @@ open class FinTsJobExecutor( context.callback.enterTan(tanChallenge) - while (tanChallenge.isEnteringTanDone == false) { - delay(250) + mayRetrieveAutomaticallyIfUserEnteredDecoupledTan(context, tanChallenge, tanResponse) - mayRetrieveAutomaticallyIfUserEnteredDecoupledTan(context, tanChallenge, tanResponse) + while (tanChallenge.isEnteringTanDone == false) { + delay(500) // TODO: add a timeout of e.g. 30 min }