Skip to content

Commit 452491a

Browse files
committed
catch IOException in outer scope only
1 parent 6c23e27 commit 452491a

File tree

1 file changed

+0
-3
lines changed
  • android/app/src/main/kotlin/com/yubico/authenticator/oath

1 file changed

+0
-3
lines changed

android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,6 @@ class OathManager(
569569
useOathSessionUsb(usbYubiKeyDevice) { session ->
570570
try {
571571
oathViewModel.updateCredentials(calculateOathCodes(session))
572-
} catch (ioException: IOException) {
573-
logger.error("Exception while calculating codes: ", ioException)
574-
clearCodes()
575572
} catch (apduException: ApduException) {
576573
if (apduException.sw == SW.SECURITY_CONDITION_NOT_SATISFIED) {
577574
logger.debug("Handled oath credential refresh on locked session.")

0 commit comments

Comments
 (0)