Author: toad
Date: 2009-04-02 16:45:22 +0000 (Thu, 02 Apr 2009)
New Revision: 26362

Modified:
   trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
Log:
Synchronization


Modified: trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java
===================================================================
--- trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2009-04-02 16:36:43 UTC (rev 26361)
+++ trunk/freenet/src/freenet/support/SectoredRandomGrabArray.java      
2009-04-02 16:45:22 UTC (rev 26362)
@@ -253,7 +253,7 @@
                }
        }
 
-       private void removeElement(int x) {
+       private synchronized void removeElement(int x) {
                final int grabArraysLength = grabArrays.length;
                int newLen = grabArraysLength > 1 ? grabArraysLength-1 : 0;
                RemoveRandomWithObject[] newArray = new 
RemoveRandomWithObject[newLen];

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to