Fix error causing ClearEventListenerTest failure

This commit is contained in:
Andrea Boriero 2016-04-27 10:09:00 +01:00 committed by Steve Ebersole
parent d34153f52e
commit 44efc0162e
1 changed files with 2 additions and 2 deletions

View File

@ -2259,8 +2259,8 @@ public final class SessionImpl
log.tracef( "SessionImpl#afterTransactionCompletion(successful=%s, delayed=%s)", successful, delayed );
if ( !isClosed() ) {
if ( !successful && autoClear ) {
clear();
if ( autoClear ) {
internalClear();
}
}