Author: toad
Date: 2008-03-21 17:47:16 +0000 (Fri, 21 Mar 2008)
New Revision: 18679

Modified:
   trunk/freenet/src/freenet/client/async/OfferedKeysList.java
Log:
Synchronization.

Modified: trunk/freenet/src/freenet/client/async/OfferedKeysList.java
===================================================================
--- trunk/freenet/src/freenet/client/async/OfferedKeysList.java 2008-03-21 
17:46:49 UTC (rev 18678)
+++ trunk/freenet/src/freenet/client/async/OfferedKeysList.java 2008-03-21 
17:47:16 UTC (rev 18679)
@@ -69,7 +69,7 @@
                throw new UnsupportedOperationException();
        }

-       public Object chooseKey() {
+       public synchronized Object chooseKey() {
                // Pick a random key
                if(keysList.isEmpty()) return null;
                int ptr = random.nextInt(keysList.size());


Reply via email to