]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/JcrTestResult.java
Logout when closing
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.jcr / src / main / java / org / argeo / slc / jcr / JcrTestResult.java
index c9d80202921110dd9eb3e65298971fea4f0d6911..daeb3249135caad35a12aeabc9eb5cb2f2cd900a 100644 (file)
@@ -133,6 +133,8 @@ public class JcrTestResult implements TestResult, SlcNames, AttachmentsEnabled {
                        JcrUtils.discardUnderlyingSessionQuietly(node);
                        throw new SlcException("Cannot get close date from " + node, e);
                }
+               if (logoutWhenDestroyed)
+                       JcrUtils.logoutQuietly(session);
        }
 
        public Date getCloseDate() {