Skip to content

Commit 7f438fa

Browse files
fix maybe problem
1 parent ee578a2 commit 7f438fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ydb.Sdk/src/Ado/Session/ImplicitSessionSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private bool TryAcquireLease()
4545
internal void ReleaseLease()
4646
{
4747
if (Interlocked.Decrement(ref _activeLeaseCount) == 0 && Volatile.Read(ref _isDisposed) == 1)
48-
_drainedTcs.SetResult();
48+
_drainedTcs.TrySetResult();
4949
}
5050

5151
public async ValueTask DisposeAsync()

0 commit comments

Comments
 (0)