Author: toad
Date: 2008-07-29 00:38:48 +0000 (Tue, 29 Jul 2008)
New Revision: 21464

Modified:
   branches/db4o/freenet/src/freenet/node/SendableRequest.java
Log:
Doh - NPE

Modified: branches/db4o/freenet/src/freenet/node/SendableRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/SendableRequest.java 2008-07-29 
00:31:26 UTC (rev 21463)
+++ branches/db4o/freenet/src/freenet/node/SendableRequest.java 2008-07-29 
00:38:48 UTC (rev 21464)
@@ -109,10 +109,11 @@
                                Logger.minor(this, "Cannot unregister "+this+" 
: not registered", new Exception("debug"));
                }
                ClientRequester cr = getClientRequest();
-               container.activate(cr, 1);
+               if(persistent)
+                       container.activate(cr, 1);
                getScheduler(context).removeFromAllRequestsByClientRequest(cr, 
this);
                // FIXME should we deactivate??
-               //container.deactivate(cr, 1);
+               //if(persistent) container.deactivate(cr, 1);
        }

        public ClientRequestScheduler getScheduler(ClientContext context) {


Reply via email to