JakeWharton / qbt-seed-type

Maintains the 'Solo-seed' or 'Cross-seed' tag on each torrent
MIT License
6 stars 1 forks source link

Wrong tag when two seeds are seen for the first time #5

Open JakeWharton opened 2 years ago

JakeWharton commented 2 years ago

The first will get solo-seed and the second will get cross-seed. Need to somehow go back and upgrade the solo-seed upon seeing a cross in this case.

JakeWharton commented 2 years ago

I don't see how this could happen in the code. It does two passes–one to collect file counts and the second to update tags. It would have to be a race condition, which we can't fix anyway.

JakeWharton commented 2 years ago

I think this happens when the second one is paused. The file counting happens across all torrents but the tag is only considered when the torrent is non-idle.