diff --git a/src/Ydb.Sdk/src/Services/Table/SessionPool.cs b/src/Ydb.Sdk/src/Services/Table/SessionPool.cs index 4d297ab0..251b8b75 100644 --- a/src/Ydb.Sdk/src/Services/Table/SessionPool.cs +++ b/src/Ydb.Sdk/src/Services/Table/SessionPool.cs @@ -98,6 +98,7 @@ public async Task GetSession() for (var attempt = 0; attempt < maxAttempts; attempt++) { getSessionResponse = await GetSessionAttempt(); + if (getSessionResponse.Status.IsSuccess) return getSessionResponse; } _logger.LogError($"Failed to get session from pool or create it (attempts: {maxAttempts})");