This commit is contained in:
Dirk Engling 2006-12-15 23:53:24 +00:00
parent e07ea9bf71
commit a86c72c43b
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ size_t return_peers_for_torrent( ot_torrent *torrent, unsigned long amount, char
// In some rare occasions random gets the last peer a round to early
// correct that and return last peer twice
if( wert >= peer_count ) { wert--; pool_offset--; }
// if( wert >= peer_count ) { wert--; pool_offset--; }
while( pool_offset >= torrent->peer_list->peers[pool_index].size ) {
pool_offset -= torrent->peer_list->peers[pool_index].size;