diff --git a/src/NHibernate/Impl/SessionImpl.cs b/src/NHibernate/Impl/SessionImpl.cs index 9a7120ae8b7..df759ac635d 100644 --- a/src/NHibernate/Impl/SessionImpl.cs +++ b/src/NHibernate/Impl/SessionImpl.cs @@ -1055,7 +1055,7 @@ public override bool AutoFlushIfRequired(ISet querySpaces) { using (BeginProcess()) { - if (!ConnectionManager.IsInActiveTransaction) + if (IsClosed) { // do not auto-flush while outside a transaction return false;