Author: toad
Date: 2008-04-15 22:21:20 +0000 (Tue, 15 Apr 2008)
New Revision: 19368

Modified:
   trunk/freenet/src/freenet/node/fcp/RemovePersistentRequest.java
Log:
Don't try to remove connection-local requests if Global=true.

Modified: trunk/freenet/src/freenet/node/fcp/RemovePersistentRequest.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/RemovePersistentRequest.java     
2008-04-15 22:17:06 UTC (rev 19367)
+++ trunk/freenet/src/freenet/node/fcp/RemovePersistentRequest.java     
2008-04-15 22:21:20 UTC (rev 19368)
@@ -39,7 +39,8 @@
                FCPClient client = global ? handler.server.globalClient : 
handler.getClient();
         ClientRequest req = client.getRequest(identifier);
         if(req==null){
-               req = handler.removeRequestByIdentifier(identifier, true);
+               if(!global)
+                       req = handler.removeRequestByIdentifier(identifier, 
true);
                if(req == null) {
                        Logger.error(this, "Huh ? the request is null!");
                        return;


Reply via email to