Skip to content

Commit

Permalink
Fix: Regression from NHibernate 1.2 in flushing
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkent committed Sep 17, 2024
1 parent 39de4d9 commit 418be0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NHibernate/Impl/SessionImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ public override bool AutoFlushIfRequired(ISet<string> querySpaces)
{
using (BeginProcess())
{
if (!ConnectionManager.IsInActiveTransaction)
if (IsClosed)
{
// do not auto-flush while outside a transaction
return false;
Expand Down

0 comments on commit 418be0b

Please sign in to comment.