Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-05 17:59:23 -0500
committerMartin Taal2012-11-05 17:59:23 -0500
commitce2b06566f02afdf1ec52ad96935e389ce44eefe (patch)
tree6543ac6daeaccd01309ef245e2f9c5948e9ca988
parentd41b98e5e11daef3bfd02b570d43ebf4337edab1 (diff)
downloadorg.eclipse.emf.teneo-1.2.0-maintenance.tar.gz
org.eclipse.emf.teneo-1.2.0-maintenance.tar.xz
org.eclipse.emf.teneo-1.2.0-maintenance.zip
Solve infinite loop when sf is closed before the datastore1.2.0-maintenance
-rwxr-xr-xhibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbBaseSessionDataStore.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbBaseSessionDataStore.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbBaseSessionDataStore.java
index 954d0a7ef..4c2af0826 100755
--- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbBaseSessionDataStore.java
+++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/HbBaseSessionDataStore.java
@@ -80,10 +80,10 @@ public abstract class HbBaseSessionDataStore extends HbDataStore implements
protected void closeSessionFactory() {
if (sessionFactory != null && !sessionFactory.isClosed()) {
sessionFactory.close();
- sessionFactory = null;
- // do set initialized false after closing it
- setInitialized(false);
}
+ sessionFactory = null;
+ // do set initialized false after closing it
+ setInitialized(false);
}
/**

Back to the top