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();
                        }
+                       }
                }
        }
        

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to