Author: toad
Date: 2008-07-25 23:00:48 +0000 (Fri, 25 Jul 2008)
New Revision: 21408

Modified:
   branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
Doh! Fix FailureTable NPE...

Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-07-25 22:53:25 UTC (rev 21407)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-07-25 23:00:48 UTC (rev 21408)
@@ -878,12 +878,11 @@
                jobRunner.queue(new DBJob() {

                        public void run(ObjectContainer container, 
ClientContext context) {
-                               container.activate(key, 5);
+                               // Don't activate/deactivate the key, because 
it's not persistent in the first place!!
                                short priority = schedCore.getKeyPrio(key, 
oldPrio, container);
                                if(priority >= oldPrio) return; // already on 
list at >= priority
                                offeredKeys[priority].queueKey(key.cloneKey());
                                starter.wakeUp();
-                               container.deactivate(key, 5);
                        }

                }, NativeThread.NORM_PRIORITY, false);


Reply via email to