Author: toad
Date: 2008-07-31 12:41:45 +0000 (Thu, 31 Jul 2008)
New Revision: 21529

Modified:
   branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Activation related to removing from hashset

Modified: branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2008-07-31 12:40:40 UTC (rev 21528)
+++ branches/db4o/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2008-07-31 12:41:45 UTC (rev 21529)
@@ -176,7 +176,11 @@
                                                if(persistent) {
                                                        
container.activate(firstRGA, 1);
                                                }
-                                               
grabArraysByClient.remove(firstRGA.getObject());
+                                               Object firstClient = 
firstRGA.getObject();
+                                               if(persistent) {
+                                                       
container.activate(firstClient, 1);
+                                               }
+                                               
grabArraysByClient.remove(firstClient);
                                                grabArrays = new 
RemoveRandomWithObject[] { rga };
                                                if(persistent)
                                                        container.set(this);


Reply via email to