Merge pull request #829 from symform/httpwebreq-async-ssl
[mono.git] / mcs / class / System / System.Net / ListenerAsyncResult.cs
index 4de352b66a7430e096028933d099d7716a8e0344..88f75e88a9941e4c7457f763497bc9f04416d6b7 100644 (file)
@@ -28,7 +28,7 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0 && SECURITY_DEP
+#if SECURITY_DEP
 
 using System.Threading;
 namespace System.Net {
@@ -117,6 +117,8 @@ namespace System.Net {
                                        }
                                } else {
                                        completed = true;
+                    this.synch = false;
+
                                        if (handle != null)
                                                handle.Set ();