]> granicus.if.org Git - transmission/commitdiff
(trunk, libT) #53737 fix 2.77+ nightly regression that misreported the number of...
authorJordan Lee <jordan@transmissionbt.com>
Sun, 9 Jun 2013 18:56:10 +0000 (18:56 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 9 Jun 2013 18:56:10 +0000 (18:56 +0000)
libtransmission/peer-mgr.c

index d6df4aaf460ed8e62f28bf0dded13bc560f56c1f..e1f9b4c0a4721ad8f658a3b742c5c214b3043277 100644 (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;
 }