]> granicus.if.org Git - transmission/commitdiff
(trukn libT) lessen the importance of error messages returned by trackers in a multi...
authorJordan Lee <jordan@transmissionbt.com>
Sat, 25 Jun 2011 18:47:35 +0000 (18:47 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 25 Jun 2011 18:47:35 +0000 (18:47 +0000)
libtransmission/announcer.c

index d24a2ca67dc76cc4ca8909a3fde438c82727192a..335160309178f7bd42349afa6872d8e9677e7e00 100644 (file)
@@ -1054,7 +1054,13 @@ on_announce_done( const tr_announce_response  * response,
         }
         else if( response->errmsg )
         {
-            publishError( tier, response->errmsg );
+            /* If the torrent's only tracker returned an error, publish it.
+               Don't bother publishing if there are other trackers -- it's
+               all too common for people to load up dozens of dead trackers
+               in a torrent's metainfo... */
+            if( tier->tor->info.trackerCount < 2 )
+                publishError( tier, response->errmsg );
+
             on_announce_error( tier, response->errmsg, event );
         }
         else