r27031 - trunk/freenet/src/freenet/support
[email protected] Sun, 19 Apr 2009 01:39:32 +0000
| Newsgroups | gmane.network.freenet.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: xor
Date: 2009-04-19 01:39:32 +0000 (Sun, 19 Apr 2009)
New Revision: 27031
Modified:
trunk/freenet/src/freenet/support/TransferThread.java
Log:
Workaround the following bug, please read it and my comment to it and tell me why it happens, I don't understand how it can happen:
https://bugs.freenetproject.org/view.php?id=2993
Modified: trunk/freenet/src/freenet/support/TransferThread.java
===================================================================
--- trunk/freenet/src/freenet/support/TransferThread.java 2009-04-19 01:29:37 UTC (rev 27030)
+++ trunk/freenet/src/freenet/support/TransferThread.java 2009-04-19 01:39:32 UTC (rev 27031)
@@ -89,7 +89,12 @@
}
finally {
- abortAllTransfers();
+ try {
+ abortAllTransfers();
+ }
+ catch(RuntimeException e) {
+ Logger.error(this, "SHOULD NOT HAPPEN, please report this exception", e);
+ }
synchronized (this) {
shutdownFinished = true;
notify();