summaryrefslogtreecommitdiff
path: root/smccSTAL/src/main/java/at/gv
diff options
context:
space:
mode:
authorwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-13 14:51:56 +0000
committerwbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-10-13 14:51:56 +0000
commit70b917ae4b8aece8652dc076e0e1b127a89f5086 (patch)
tree7db86f8f096d4bf14033832fbb437bb59b65796f /smccSTAL/src/main/java/at/gv
parentaa099311111a1d53f999705762aceb4005ecc187 (diff)
downloadmocca-70b917ae4b8aece8652dc076e0e1b127a89f5086.tar.gz
mocca-70b917ae4b8aece8652dc076e0e1b127a89f5086.tar.bz2
mocca-70b917ae4b8aece8652dc076e0e1b127a89f5086.zip
not retrying smcc commands when canceled by user via gui
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@108 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smccSTAL/src/main/java/at/gv')
-rw-r--r--smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java
index b7697db1..b48388db 100644
--- a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java
+++ b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java
@@ -89,6 +89,10 @@ public abstract class AbstractSMCCSTAL implements STAL {
if (response != null) {
if (response instanceof ErrorResponse) {
log.info("Got an error response");
+ ErrorResponse err = (ErrorResponse) response;
+ if (err.getErrorCode() == 6001) {
+ retryCounter = Integer.MAX_VALUE-1;
+ }
if (++retryCounter < maxRetries) {
log.info("Retrying");
signatureCard.disconnect(true);