Updated Branches:
  refs/heads/master a7d016cd9 -> 28c14e9a4

DELTASPIKE-392: Document proper EM-producer


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/9612727f
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/9612727f
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/9612727f

Branch: refs/heads/master
Commit: 9612727f9353aa6a9f03bc307f86d765a904830f
Parents: a7d016c
Author: Thomas Hug <[email protected]>
Authored: Mon Jul 8 21:59:41 2013 +0200
Committer: Thomas Hug <[email protected]>
Committed: Mon Jul 8 21:59:41 2013 +0200

----------------------------------------------------------------------
 deltaspike/modules/data/README.adoc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/9612727f/deltaspike/modules/data/README.adoc
----------------------------------------------------------------------
diff --git a/deltaspike/modules/data/README.adoc 
b/deltaspike/modules/data/README.adoc
index 5252196..8db3333 100644
--- a/deltaspike/modules/data/README.adoc
+++ b/deltaspike/modules/data/README.adoc
@@ -129,7 +129,10 @@ public class DataSourceProducer
 
     public void close(@Disposes EntityManager em)
     {
-        em.close();
+        if (em.isOpen())
+        {
+            em.close();
+        }
     }
 
 }

Reply via email to