forked from I2P_Developers/i2p.i2p
2005-12-15 jrandom
* Added a first pass to the I2PSnark web UI (see /i2psnark/)
This commit is contained in:
@@ -70,6 +70,7 @@ class PeerCheckerTask extends TimerTask
|
||||
{
|
||||
it.remove();
|
||||
coordinator.removePeerFromPieces(peer);
|
||||
coordinator.peerCount = coordinator.peers.size();
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -185,6 +186,7 @@ class PeerCheckerTask extends TimerTask
|
||||
|
||||
// Put it at the back of the list
|
||||
coordinator.peers.remove(worstDownloader);
|
||||
coordinator.peerCount = coordinator.peers.size();
|
||||
removed.add(worstDownloader);
|
||||
}
|
||||
|
||||
@@ -193,6 +195,7 @@ class PeerCheckerTask extends TimerTask
|
||||
|
||||
// Put peers back at the end of the list that we removed earlier.
|
||||
coordinator.peers.addAll(removed);
|
||||
coordinator.peerCount = coordinator.peers.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user