-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed RateComparator to never return 0
The rate comparator could return 0, but since Rate doesn't implement equals() it would lead to strange behavior when building ordered sets using a RateComparator. This could lead to the number of bound peers available for unchoked to be incorrect which could prevent the start of the download when the swarm gets large. Signed-off-by: Maxime Petazzoni <[email protected]>
- Loading branch information
Maxime Petazzoni
committed
Dec 3, 2012
1 parent
ae5af44
commit 9f9d412
Showing
2 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters