Skip to content

Commit e26e53e

Browse files
Lock explicitly
Instead of relying on concurrent session usages to do it through BeginProcess.
1 parent 53e01f7 commit e26e53e

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)