From 519dcd8814f748fc3607651ca055d4beb8ad53e0 Mon Sep 17 00:00:00 2001 From: Alexander Osokin Date: Wed, 2 Nov 2022 18:28:37 +0400 Subject: [PATCH] IOS-2461 Reset retry counter after failure --- TangemSdk/TangemSdk/Common/NFC/NFCReader.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/TangemSdk/TangemSdk/Common/NFC/NFCReader.swift b/TangemSdk/TangemSdk/Common/NFC/NFCReader.swift index cd8d5b198..fdbed6890 100644 --- a/TangemSdk/TangemSdk/Common/NFC/NFCReader.swift +++ b/TangemSdk/TangemSdk/Common/NFC/NFCReader.swift @@ -290,6 +290,7 @@ extension NFCReader: CardReader { let distance = requestTimestamp.distance(to: Date()) if distance > Constants.timestampTolerance || self.sendRetryCount <= 0 { //retry to fix old device issues Log.nfc("Invoke restart polling on error") + self.sendRetryCount = Constants.retryCount self.restartPolling(silent: true) return Empty(completeImmediately: false).eraseToAnyPublisher() } else {