diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java index e8df235cc..0e9a9fe92 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java @@ -977,11 +977,11 @@ public class EntityManagerImpl } public void close() { + assertOpen(); _broker.close(); } public boolean isOpen() { - assertOpen(); return !_broker.isCloseInvoked(); }