groups.Remove (group.Name);
}
- internal bool CheckAvailableForRecycling (out DateTime outIdleSince)
+ bool CheckAvailableForRecycling (out DateTime outIdleSince)
{
outIdleSince = DateTime.MinValue;
if (removeList != null) {
foreach (var group in removeList)
- RemoveConnectionGroup (group);
+ if (groups.ContainsKey (group.Name))
+ RemoveConnectionGroup (group);
}
if (groups != null && groups.Count == 0)