]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java
Start skip count with one since the first step is always open session
[gpl/argeo-slc.git] / 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.