Skip to content

Commit

Permalink
ClearAllPools with synchronous session closing
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Dec 11, 2023
1 parent 129f077 commit c9031cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snowflake.Data/Core/Session/SessionPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ internal void ClearAllPools()
{
foreach (SFSession session in _sessions)
{
Task.Run(() => session.close());
session.close(); // it is left synchronously here because too much async tasks slows down testing
}
_sessions.Clear();
}
Expand Down

0 comments on commit c9031cf

Please sign in to comment.