Skip to content

Commit

Permalink
Fix to rebase code
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mhofman committed Oct 31, 2023
1 parent 259e67a commit 0586f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Snowflake.Data/Core/Session/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0586f62

Please sign in to comment.