Author: toad
Date: 2008-09-23 16:36:12 +0000 (Tue, 23 Sep 2008)
New Revision: 22773

Modified:
   trunk/freenet/src/freenet/node/FailureTable.java
Log:
Unlock on a throwable, and log the throwable.
May help with bug #2582.


Modified: trunk/freenet/src/freenet/node/FailureTable.java
===================================================================
--- trunk/freenet/src/freenet/node/FailureTable.java    2008-09-23 16:35:11 UTC 
(rev 22772)
+++ trunk/freenet/src/freenet/node/FailureTable.java    2008-09-23 16:36:12 UTC 
(rev 22773)
@@ -388,6 +388,9 @@
                                } catch (NotConnectedException e) {
                                        node.unlockUID(uid, isSSK, false, 
false, true, false);
                                        // Too bad.
+                               } catch (Throwable t) {
+                                       node.unlockUID(uid, isSSK, false, 
false, true, false);
+                                       Logger.error(this, "Caught "+t+" 
sending offered key");
                                }
                        }
                }, "sendOfferedKey");


Reply via email to