Skip to content

Commit

Permalink
adjust longpollthread exception handling to match a-trust (reload aft…
Browse files Browse the repository at this point in the history
…er 10s)
  • Loading branch information
iaik-jheher committed Apr 2, 2024
1 parent 8ce4b66 commit e85589d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,10 @@ public void run() {
} catch (Exception e) {
if (done) break;
log.warn("QR code long polling exception", e);
/* sleep so we don't hammer a-trust too hard in case this goes wrong */
try { Thread.sleep(5000); } catch (InterruptedException e2) {}

/* A-Trust does excepting handling this way, so we copy it (they might mask errors, so we should too...) */
try { Thread.sleep(10000); } catch (InterruptedException e2) {}
signalProbablyDone();
}
}
log.debug("LongPollThread goodbye");
Expand Down

0 comments on commit e85589d

Please sign in to comment.