r26719 - trunk/freenet/src/freenet/client/async

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-10 16:42:49 +0000 (Fri, 10 Apr 2009)
New Revision: 26719

Modified:
   trunk/freenet/src/freenet/client/async/PersistentCooldownQueue.java
Log:
Activation, fix NPE


Modified: trunk/freenet/src/freenet/client/async/PersistentCooldownQueue.java
===================================================================
--- trunk/freenet/src/freenet/client/async/PersistentCooldownQueue.java	2009-04-10 16:26:06 UTC (rev 26718)
+++ trunk/freenet/src/freenet/client/async/PersistentCooldownQueue.java	2009-04-10 16:42:49 UTC (rev 26719)
@@ -35,6 +35,7 @@
 	public long add(Key key, SendableGet client, ObjectContainer container) {
 		assert(cooldownTime != 0);
 		long removeTime = System.currentTimeMillis() + cooldownTime;
+		container.activate(key, 5);
 		PersistentCooldownQueueItem persistentCooldownQueueItem = new PersistentCooldownQueueItem(client, key.cloneKey(), removeTime, this);
 		container.store(persistentCooldownQueueItem);
 		return removeTime;
@@ -121,6 +122,7 @@
 					Logger.error(this, "parent="+i.parent+" but should be "+this);
 					continue;
 				}
+				container.activate(i.key, 5);
 				v.add(i.key.cloneKey());
 				i.delete(container);
 			}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.