Skip to content

Commit 33602b9

Browse files
committed
Fix fill-to-min and try-replace behaviours
Remove the `RemoveConnection` call in both, as they call something which already removes the connection
1 parent 04ce33f commit 33602b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/AdoNetCore.AseClient/Internal/ConnectionPool.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ private async Task TryFillPoolToMinSize()
212212
catch(Exception ex)
213213
{
214214
Logger.Instance?.WriteLine($"{nameof(TryFillPoolToMinSize)} exception: {ex}");
215-
RemoveConnection();
216215
}
217216
}
218217
Logger.Instance?.WriteLine($"{nameof(TryFillPoolToMinSize)} end");
@@ -231,7 +230,6 @@ private async Task TryReplaceConnection()
231230
catch (Exception ex)
232231
{
233232
Logger.Instance?.WriteLine($"{nameof(TryReplaceConnection)} exception: {ex}");
234-
RemoveConnection();
235233
}
236234
}
237235
}

0 commit comments

Comments
 (0)