ttorrent
ttorrent copied to clipboard
Rarest set of pieces is replaced with set of rarest pieces indexes
Fix memory leak. It is not a good idea to change field which is used in compareTo and use this object in sorted set. It turns out the set may not find such object after modification, which leads to memory leak when object is added to the set again. Also we can replace delete-add modify of this set with only add