Author: miguel
Date: 2007-03-29 09:53:07 -0500 (Thu, 29 Mar 2007)
New Revision: 75144

Modified:
   trunk/xsp/ChangeLog
   trunk/xsp/src/ModMonoApplicationHost.cs
Log:
2007-03-29  Miguel de Icaza  <[EMAIL PROTECTED]>

        * src/ModMonoApplicationHost.cs: Do not try to call Close on a
        null stream (Stream can become null inside InnerRun) and this
        makes debugging with gdb harder. 

Modified: trunk/xsp/ChangeLog
===================================================================
--- trunk/xsp/ChangeLog 2007-03-29 14:21:23 UTC (rev 75143)
+++ trunk/xsp/ChangeLog 2007-03-29 14:53:07 UTC (rev 75144)
@@ -1,3 +1,9 @@
+2007-03-29  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * src/ModMonoApplicationHost.cs: Do not try to call Close on a
+       null stream (Stream can become null inside InnerRun) and this
+       makes debugging with gdb harder. 
+
 2007-03-28  Miguel de Icaza  <[EMAIL PROTECTED]>
 
        * src/ModMonoRequest.cs: Only compute the data once.

Modified: trunk/xsp/src/ModMonoApplicationHost.cs
===================================================================
--- trunk/xsp/src/ModMonoApplicationHost.cs     2007-03-29 14:21:23 UTC (rev 
75143)
+++ trunk/xsp/src/ModMonoApplicationHost.cs     2007-03-29 14:53:07 UTC (rev 
75144)
@@ -285,10 +285,11 @@
                        } finally {
                                try {
                                        // Closing is enough for mod_mono. the 
module will return a 50x
-                                       Stream.Close ();
-                                       Stream = null;
+                                       if (Stream != null){
+                                               Stream.Close ();
+                                               Stream = null;
+                                       }
                                } catch {}
-
                                if (broker != null && requestId != -1) {
                                        broker.UnregisterRequest (requestId);
                                        requestId = -1;

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

Reply via email to