]> granicus.if.org Git - transmission/commitdiff
Fixup 2321bc3fad (unintended logic change, spotted by cfpp2p in #297)
authorMike Gelfand <mikedld@mikedld.com>
Mon, 29 May 2017 05:50:40 +0000 (08:50 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Mon, 29 May 2017 05:50:40 +0000 (08:50 +0300)
libtransmission/announcer.c

index 2d06b6e3c81c811403b493671b7814057db23420..c44ec31481f4f6fca670cb1a27ab7e443c5a36c3 100644 (file)
@@ -1191,7 +1191,7 @@ static void on_announce_done(tr_announce_response const* response, void* vdata)
 
             /* if the tracker included scrape fields in its announce response,
                then a separate scrape isn't needed */
-            if (scrape_fields >= 3 || (scrape_fields >= 1 && tracker->scrape != NULL))
+            if (scrape_fields >= 3 || (scrape_fields >= 1 && tracker->scrape == NULL))
             {
                 tr_logAddTorDbg(tier->tor, "Announce response contained scrape info; "
                     "rescheduling next scrape to %d seconds from now.", tier->scrapeIntervalSec);