diff --git a/Snowflake.Data/Core/Session/SessionPool.cs b/Snowflake.Data/Core/Session/SessionPool.cs index 1df54811c..a7eae7726 100644 --- a/Snowflake.Data/Core/Session/SessionPool.cs +++ b/Snowflake.Data/Core/Session/SessionPool.cs @@ -196,11 +196,11 @@ internal void ClearAllPools() internal async void ClearAllPoolsAsync() { s_logger.Debug("SessionPool::ClearAllPoolsAsync"); - foreach (SFSession session in _sessionPool) + foreach (SFSession session in _sessions) { await session.CloseAsync(CancellationToken.None).ConfigureAwait(false); } - _sessionPool.Clear(); + _sessions.Clear(); } public void SetMaxPoolSize(int size)