Enable the System build for monodroid
[mono.git] / mcs / class / System / System.Net / ListenerAsyncResult.cs
index 55641118f93fe8aaf0c89e8258973afa86d42a85..c0b6854a2d3c198479a1e80846cd73919824f947 100644 (file)
@@ -71,10 +71,13 @@ namespace System.Net {
                {
                        ListenerAsyncResult ares = (ListenerAsyncResult) o;
                        if (ares.forward != null) {
-                               ares.forward.cb (ares);
+                               InvokeCallback (ares.forward);
                                return;
                        }
-                       ares.cb (ares);
+                       try {
+                               ares.cb (ares);
+                       } catch {
+                       }
                }
 
                internal void Complete (HttpListenerContext context)