Skip to content

Commit

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

0 comments on commit 76dd1bc

Please sign in to comment.