]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #2518: overzealously alarmist re unresponsive trackers
authorCharles Kerr <charles@transmissionbt.com>
Tue, 27 Oct 2009 21:03:13 +0000 (21:03 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Tue, 27 Oct 2009 21:03:13 +0000 (21:03 +0000)
libtransmission/announcer.c

index ca34d0438a8ad2f9507cc214b304869e1913014e..3e0bd1452a51f9ae016dbe82c5c80f3f2035d357 100644 (file)
@@ -1266,7 +1266,8 @@ onAnnounceDone( tr_session   * session,
             /* The request could not be understood by the server due to
              * malformed syntax. The client SHOULD NOT repeat the
              * request without modifications. */
-            publishErrorMessageAndStop( tier, _( "Tracker returned a 4xx message" ) );
+            if( tr_torrentIsPrivate( tier->tor ) || ( tier->tor->info.trackerCount < 2 ) )
+                publishErrorMessageAndStop( tier, _( "Tracker returned a 4xx message" ) );
             tier->manualAnnounceAllowedAt = ~(time_t)0;
         }
         else if( 500 <= responseCode && responseCode <= 599 )