(trunk, libT) #53737 fix 2.77+ nightly regression that misreported the number of webseeds

This commit is contained in:
Jordan Lee 2013-06-09 18:56:10 +00:00
parent 30882e69b1
commit 43b3a47661
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}