From: Mathieu Baudier Date: Wed, 29 Oct 2008 11:34:13 +0000 (+0000) Subject: Start skip count with one since the first step is always open session X-Git-Tag: argeo-slc-2.1.7~2444 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=ca0cd80c31bd91e537d7e8ab2ed509bba56dc7c3;p=gpl%2Fargeo-slc.git Start skip count with one since the first step is always open session git-svn-id: https://svn.argeo.org/slc/trunk@1770 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- diff --git a/org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java b/org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java index ca16fb344..4d9abc598 100644 --- a/org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java +++ b/org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedExecutionServerImpl.java @@ -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.