Skip to content

Commit

Permalink
Merge pull request #224 from tangem/IOS-2461_reset_retry_counter
Browse files Browse the repository at this point in the history
IOS-2461 Reset retry counter after failure
  • Loading branch information
tureck1y authored Nov 2, 2022
2 parents 030d3e3 + 059fdb5 commit ecf1205
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TangemSdk/TangemSdk/Common/NFC/NFCReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ecf1205

Please sign in to comment.