r27032 - trunk/freenet/src/freenet/support

[email protected] Sun, 19 Apr 2009 01:53:37 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: xor
Date: 2009-04-19 01:53:37 +0000 (Sun, 19 Apr 2009)
New Revision: 27032

Modified:
   trunk/freenet/src/freenet/support/TransferThread.java
Log:
Use a finally{} to make it dead sure that the shutdown is finished.

Modified: trunk/freenet/src/freenet/support/TransferThread.java
===================================================================
--- trunk/freenet/src/freenet/support/TransferThread.java	2009-04-19 01:39:32 UTC (rev 27031)
+++ trunk/freenet/src/freenet/support/TransferThread.java	2009-04-19 01:53:37 UTC (rev 27032)
@@ -95,10 +95,12 @@
 			catch(RuntimeException e) {
 				Logger.error(this, "SHOULD NOT HAPPEN, please report this exception", e);
 			}
+			finally {
 			synchronized (this) {
 				shutdownFinished = true;
 				notify();
 			}
+			}
 		}
 	}