From 70b917ae4b8aece8652dc076e0e1b127a89f5086 Mon Sep 17 00:00:00 2001 From: wbauer Date: Mon, 13 Oct 2008 14:51:56 +0000 Subject: 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 --- smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/AbstractSMCCSTAL.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'smccSTAL/src/main/java/at/gv/egiz') 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); -- cgit v1.2.3