Author: gonzalo
Date: 2005-04-16 17:44:05 -0400 (Sat, 16 Apr 2005)
New Revision: 43130

Modified:
   trunk/mcs/class/System/System.Net/WebConnectionStream.cs
Log:
ahoy

Modified: trunk/mcs/class/System/System.Net/WebConnectionStream.cs
===================================================================
--- trunk/mcs/class/System/System.Net/WebConnectionStream.cs    2005-04-16 
21:41:05 UTC (rev 43129)
+++ trunk/mcs/class/System/System.Net/WebConnectionStream.cs    2005-04-16 
21:44:05 UTC (rev 43130)
@@ -401,8 +401,13 @@
                        if (result.GotException)
                                throw result.Exception;
 
-                       cnc.EndWrite (result.InnerAsyncResult);
-                       result.SetCompleted (false, 0);
+                       try { 
+                               cnc.EndWrite (result.InnerAsyncResult);
+                               result.SetCompleted (false, 0);
+                       } catch (Exception e) {
+                               result.SetCompleted (false, e);
+                       }
+
                        if (sendChunked) {
                                lock (locker) {
                                        pendingWrites--;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to