Changeset 8905


Ignore:
Timestamp:
Aug 12, 2009, 8:12:52 PM (13 years ago)
Author:
charles
Message:

(trunk, libT) fix for #2269 ("error message cleared unexpectedly"): a successful scrape clears the error message, and there's no point in scraping an error torrent anyway, so don't scrape until the torrent's error is cleared by a successful announce.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r8893 r8905  
    984984          && ( trackerSupportsScrape( t, tor ) ) )
    985985        {
    986             t->scrapeAt = TR_TRACKER_BUSY;
    987             enqueueScrape( session, t );
     986            if( ( tor->error == TR_STAT_TRACKER_ERROR ) || ( tor->error == TR_STAT_LOCAL_ERROR ) )
     987            {
     988                /* keep deferring the scrape until the errors are resolved.
     989                   there's no point in wasting a round trip on this torrent until then. */
     990                t->scrapeAt = now + t->scrapeIntervalSec + t->randOffset;
     991            }
     992            else
     993            {
     994                t->scrapeAt = TR_TRACKER_BUSY;
     995                enqueueScrape( session, t );
     996            }
    988997        }
    989998
Note: See TracChangeset for help on using the changeset viewer.