We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4297acb commit 6bb7655Copy full SHA for 6bb7655
src/Ydb.Sdk/src/Ado/Session/ImplicitSessionSource.cs
@@ -42,7 +42,9 @@ private bool TryAcquireLease()
42
43
internal void ReleaseLease()
44
{
45
- if (Interlocked.Decrement(ref _activeLeaseCount) == 0 && Volatile.Read(ref _isDisposed) == 1)
+ Interlocked.Decrement(ref _activeLeaseCount);
46
+
47
+ if (Volatile.Read(ref _isDisposed) == 1 && _activeLeaseCount == 0)
48
_drainedTcs.TrySetResult();
49
}
50
0 commit comments