]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Start skip count with one since the first step is always open session
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 29 Oct 2008 11:34:13 +0000 (11:34 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 29 Oct 2008 11:34:13 +0000 (11:34 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@1770 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java

index ca16fb344f083dbb5fe2f8ba3388ea475e96ee56..4d9abc59827a52e774873c5b68b0511d536d4663 100644 (file)
@@ -17,7 +17,8 @@ public class DetachedExecutionServerImpl implements DetachedExecutionServer {
        private final DetachedContextImpl detachedContext;
        private final List sessions;
 
-       private int skipCount = 0;
+       private int skipCount = 1;// start skipCount at 1 since the first step is
+                                                               // always an open session
 
        private BundleContext bundleContext;
 
@@ -113,7 +114,8 @@ public class DetachedExecutionServerImpl implements DetachedExecutionServer {
                                                                .info("Path "
                                                                                + request.getPath()
                                                                                + " was previously in error, executing it again."
-                                                                               + " (skipCount=" + skipCount + ")");
+                                                                               + " (skipCount=" + skipCount + "). Reset skip count to 1");
+                                               skipCount = 1;
                                        }
                                } else {
                                        // went further as skip count, doing nothing.