Author: toad
Date: 2008-06-24 16:55:08 +0000 (Tue, 24 Jun 2008)
New Revision: 20651

Modified:
   branches/db4o/freenet/src/freenet/support/FileLoggerHook.java
Log:
Detect cause = self

Modified: branches/db4o/freenet/src/freenet/support/FileLoggerHook.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/FileLoggerHook.java       
2008-06-24 16:09:47 UTC (rev 20650)
+++ branches/db4o/freenet/src/freenet/support/FileLoggerHook.java       
2008-06-24 16:55:08 UTC (rev 20651)
@@ -834,7 +834,9 @@
                                }
                        }

-                       e = e.getCause();
+                       Throwable cause = e.getCause();
+                       if(cause != e) e = cause;
+                       else break;
                }

                logString(sb.toString().getBytes());


Reply via email to