aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules/plugins')
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
index e6c18675b..fbfe37386 100644
--- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
@@ -1313,17 +1313,9 @@ public class JcrMetadataRepository
public void close()
throws MetadataRepositoryException
{
- try
+ if ( jcrSession != null && jcrSession.isLive() )
{
- if ( getJcrSession().isLive() )
- {
- getJcrSession().logout();
- }
- }
- catch ( RepositoryException e )
- {
- log.error( e.getMessage(), e );
- throw new MetadataRepositoryException( e.getMessage(), e );
+ jcrSession.logout();
}
}