mirror of
https://github.com/transmission/transmission
synced 2024-12-23 00:04:06 +00:00
(trunk, libT) #53737 fix 2.77+ nightly regression that misreported the number of webseeds
This commit is contained in:
parent
30882e69b1
commit
43b3a47661
1 changed files with 1 additions and 5 deletions
|
@ -868,7 +868,7 @@ requestListRemove (tr_swarm * s, tr_block_index_t block, const tr_peer * peer)
|
|||
static int
|
||||
countActiveWebseeds (tr_swarm * s)
|
||||
{
|
||||
int activeCount;
|
||||
int activeCount = 0;
|
||||
|
||||
if (s->tor->isRunning && !tr_torrentIsSeed (s->tor))
|
||||
{
|
||||
|
@ -880,10 +880,6 @@ countActiveWebseeds (tr_swarm * s)
|
|||
if (tr_peerIsTransferringPieces (tr_ptrArrayNth(&s->webseeds,i), now, TR_DOWN, NULL))
|
||||
++activeCount;
|
||||
}
|
||||
else
|
||||
{
|
||||
activeCount = 0;
|
||||
}
|
||||
|
||||
return activeCount;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue