New test.
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels / HttpListenerManager.cs
index 4c5f32af67013b519a743584febf7821e6327d58..14a2d54f831ce8abbeba46c5cf5f278547f51827 100644 (file)
@@ -381,7 +381,7 @@ namespace System.ServiceModel.Channels
                                }
                        }
 
-                       lock (registered_channels) {
+                       lock (pending) {
                                pending.Add (ctx);
                                // FIXME: this should not be required, but it somehow saves some failures wrt concurrent calls.
                                Thread.Sleep (100);