Update of /cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26693/src/nl/cwi/monetdb/mcl/net

Modified Files:
        MapiSocket.java 
Log Message:
Don't fail when redirecting if debugging is enabled because the
debug-log has been closed.


Index: MapiSocket.java
===================================================================
RCS file: 
/cvsroot/monetdb/clients/src/java/src/nl/cwi/monetdb/mcl/net/MapiSocket.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- MapiSocket.java     19 Jul 2007 09:29:29 -0000      1.6
+++ MapiSocket.java     27 Aug 2007 12:25:24 -0000      1.7
@@ -251,7 +251,14 @@
                        throw new MCLException(err.trim());
                }
                if (redirects != null) {
-                       close();
+                       // avoid the debug log being closed
+                       if (debug) {
+                               debug = false;
+                               close();
+                               debug = true;
+                       } else {
+                               close();
+                       }
                        if (followRedirects) {
                                // Ok, server wants us to go somewhere else.  
The list
                                // might have multiple clues on where to go.  
For now we


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to