forked from I2P_Developers/i2p.i2p
2005-12-19 jrandom
* Fix for old Syndie blog bookmarks (thanks Complication!) * Fix for I2PSnark to accept incoming connections again (oops) * Randomize the order that peers from the tracker are contacted
This commit is contained in:
@ -209,7 +209,9 @@ public class TrackerClient extends I2PThread
|
||||
if ( (left > 0) && (!completed) ) {
|
||||
// we only want to talk to new people if we need things
|
||||
// from them (duh)
|
||||
Iterator it = peers.iterator();
|
||||
List ordered = new ArrayList(peers);
|
||||
Collections.shuffle(ordered);
|
||||
Iterator it = ordered.iterator();
|
||||
while (it.hasNext()) {
|
||||
Peer cur = (Peer)it.next();
|
||||
coordinator.addPeer(cur);
|
||||
|
Reference in New Issue
Block a user