From 43b3a47661da010f04dadebc8ad0db1356cda628 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 9 Jun 2013 18:56:10 +0000 Subject: [PATCH] (trunk, libT) #53737 fix 2.77+ nightly regression that misreported the number of webseeds --- libtransmission/peer-mgr.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index d6df4aaf4..e1f9b4c0a 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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; }