Join GitHub today
Peers column in main interface shows randomly high number once last peer finishes #9660
qBittorrent version and Operating System
qBittorrent v4.1.3 Windows 10 Pro x64
If on linux, libtorrent and Qt version
What is the problem
When becoming a seed on a torrent, once the last peer finishes (reaches 100%) the Peers column in the main interface shows a seemingly random, relatively high number. The Trackers tab doesn't show this incorrect value in its Peers column (all trackers, DHT, PeX, LPE report 0).
If a new peer comes along for the torrent, the Peers column once again shows correctly (e.g. 1) which will match the Trackers tab values.
What is the expected behavior
Peers column should show 0 when peers are actually 0 or unknown.
Steps to reproduce
Extra info(if any)
This doesn't seem to occur if you start a new torrent as the only seed and no peers, or if you join an existing torrent as a seed with no peers (which I think is similar to/the same as restart qb). It seems to be something specific that happens at the moment of a torrent where you are a seed flipping from some peers to zero peers, or perhaps during the next tracker update after that happens.
Unsure if this is a libtorrent or qb problem, since the Trackers tab continues to show valid values throughout.