[system] Remove closed connection groups from service point manager. Fixes #25254
authorMarek Safar <marek.safar@gmail.com>
Mon, 9 Mar 2015 23:12:13 +0000 (00:12 +0100)
committerMarek Safar <marek.safar@gmail.com>
Mon, 9 Mar 2015 23:26:13 +0000 (00:26 +0100)
mcs/class/System/System.Net/ServicePoint.cs

index e7d0f70be874332d693f903f50f91ea23800206e..26a98ac353fa613f9716b483365ac0683878fe28 100644 (file)
@@ -404,6 +404,7 @@ namespace System.Net
                                WebConnectionGroup cncGroup = GetConnectionGroup (connectionGroupName);
                                if (cncGroup != null) {
                                        cncGroup.Close ();
+                                       RemoveConnectionGroup (cncGroup);
                                        return true;
                                }
                        }