Author: nextgens
Date: 2008-07-03 02:15:03 +0000 (Thu, 03 Jul 2008)
New Revision: 20946
Modified:
trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
Apparently there is a race condition there; keep the lock longer and queue the
job while holding it
Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java 2008-07-03
02:11:03 UTC (rev 20945)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java 2008-07-03
02:15:03 UTC (rev 20946)
@@ -2823,9 +2823,10 @@
authenticatorCache.clear();
timeLastReset = now;
+
+ node.getTicker().queueTimedJob(transientKeyRekeyer,
"JFKmaybeResetTransitentKey "+now, TRANSIENT_KEY_REKEYING_MIN_INTERVAL, false);
+ Logger.normal(this, "JFK's TransientKey has been
changed and the message cache flushed.");
}
- node.getTicker().queueTimedJob(transientKeyRekeyer,
"JFKmaybeResetTransitentKey "+now, TRANSIENT_KEY_REKEYING_MIN_INTERVAL, false);
- Logger.normal(this, "JFK's TransientKey has been changed and
the message cache flushed.");
return true;
}