Skip to content

Commit 5a1f3f4

Browse files
Lock explicitly
Instead of relying on concurrent session usages to do it through BeginProcess.
1 parent 82b5c5d commit 5a1f3f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/NHibernate/Transaction/AdoNetWithSystemTransactionFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ protected virtual void CompleteTransaction(bool isCommitted)
484484
// do an early exit here in such case.
485485
if (!IsInActiveTransaction)
486486
return;
487+
Lock();
487488
var isSessionProcessing = _session.IsProcessing();
488489
try
489490
{

0 commit comments

Comments
 (0)