Flush (work in progress)
[mono.git] / mcs / class / System / System.Net / ServicePoint.cs
index 88be5a7ec71e32ec867f736332aa4dcf2d2425ec..c93f36d1bba52b5c28f89ab5f537dc4b602af70c 100644 (file)
@@ -270,7 +270,8 @@ namespace System.Net
                {
                        protocolVersion = version;
                }
-#if MONOTOUCH || (!TARGET_JVM && !NET_2_1)
+
+#if !TARGET_JVM
                WebConnectionGroup GetConnectionGroup (string name)
                {
                        if (name == null)
@@ -298,10 +299,17 @@ namespace System.Net
                }
 #endif
 #if NET_2_0
-               [MonoNotSupported ("")]
                public bool CloseConnectionGroup (string connectionGroupName)
                {
-                       throw new NotImplementedException ();
+                       lock (locker) {
+                               WebConnectionGroup cncGroup = GetConnectionGroup (connectionGroupName);
+                               if (cncGroup != null) {
+                                       cncGroup.Close ();
+                                       return true;
+                               }
+                       }
+
+                       return false;
                }
 #endif