Author: toad
Date: 2008-02-05 22:12:50 +0000 (Tue, 05 Feb 2008)
New Revision: 17558

Modified:
   trunk/freenet/src/freenet/node/NodeClientCore.java
Log:
Don't unlock the UID after having started an asynchronous request!

Modified: trunk/freenet/src/freenet/node/NodeClientCore.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeClientCore.java  2008-02-05 22:07:34 UTC 
(rev 17557)
+++ trunk/freenet/src/freenet/node/NodeClientCore.java  2008-02-05 22:12:50 UTC 
(rev 17558)
@@ -458,8 +458,12 @@
                        // Else it has started a request.
                        if(logMINOR)
                                Logger.minor(this, "Started "+o+" for "+uid+" 
for "+key);
-               } finally {
+               } catch (RuntimeException e) {
+                       Logger.error(this, "Caught error trying to start 
request: "+e, e);
                        node.unlockUID(uid, false, false, true, false);
+               } catch (Error e) {
+                       Logger.error(this, "Caught error trying to start 
request: "+e, e);
+                       node.unlockUID(uid, false, false, true, false);
                }
        }



Reply via email to