1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 08:13:27 +00:00

(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

View file

@ -868,7 +868,7 @@ requestListRemove (tr_swarm * s, tr_block_index_t block, const tr_peer * peer)
static int static int
countActiveWebseeds (tr_swarm * s) countActiveWebseeds (tr_swarm * s)
{ {
int activeCount; int activeCount = 0;
if (s->tor->isRunning && !tr_torrentIsSeed (s->tor)) 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)) if (tr_peerIsTransferringPieces (tr_ptrArrayNth(&s->webseeds,i), now, TR_DOWN, NULL))
++activeCount; ++activeCount;
} }
else
{
activeCount = 0;
}
return activeCount; return activeCount;
} }