summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-05-05 10:58:58 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-05-05 10:58:58 +0200
commite00f1a6ed5766f80357661f47686c0822e1f7e0e (patch)
tree6665115c82327a10366cf7295965c54252c81f60 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku
parent6c2bcd00407f6c6ab9b17de203e4ee37f9777481 (diff)
downloadpdf-over-e00f1a6ed5766f80357661f47686c0822e1f7e0e.tar.gz
pdf-over-e00f1a6ed5766f80357661f47686c0822e1f7e0e.tar.bz2
pdf-over-e00f1a6ed5766f80357661f47686c0822e1f7e0e.zip
clean up timeout code a bit
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
index b24761a9..a3b70d00 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java
@@ -92,13 +92,13 @@ public class MobileBKUConnector implements BkuSlConnector {
// handle polling
this.state.showOpenAppMessageWithSMSandCancel();
- if (((ATrustStatus) this.state.getStatus()).isSmsTan()) {
- ATrustHandler aHandler = (ATrustHandler) handler;
- String response = aHandler.postSMSRequest();
- aHandler.handleCredentialsResponse(response);
- } else if (handleErrorMessage()) {
- throw new SignatureException(new IllegalStateException());
- }
+ if (((ATrustStatus) this.state.getStatus()).isSmsTan()) {
+ ATrustHandler aHandler = (ATrustHandler) handler;
+ String response = aHandler.postSMSRequest();
+ aHandler.handleCredentialsResponse(response);
+ } else if (handleErrorMessage()) {
+ throw new SignatureException(new IllegalStateException());
+ }
} else {
// Now we have received some data lets check it: