From 0586f62ee26ae7eb19744f84b84b608e06729c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Hofman?= Date: Tue, 31 Oct 2023 17:04:47 +0100 Subject: [PATCH] Fix to rebase code --- Snowflake.Data/Core/Session/SessionPool.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Snowflake.Data/Core/Session/SessionPool.cs b/Snowflake.Data/Core/Session/SessionPool.cs index a54304930..530df1b5f 100644 --- a/Snowflake.Data/Core/Session/SessionPool.cs +++ b/Snowflake.Data/Core/Session/SessionPool.cs @@ -218,11 +218,11 @@ internal void ClearAllPools() internal async void ClearAllPoolsAsync() { s_logger.Debug("SessionPool::ClearAllPoolsAsync"); - foreach (SFSession session in _sessions) + foreach (SFSession session in _idleSessions) { await session.CloseAsync(CancellationToken.None).ConfigureAwait(false); } - _sessions.Clear(); + _idleSessions.Clear(); } public void SetMaxPoolSize(int size)