Changeset 9756


Ignore:
Timestamp:
Dec 14, 2009, 5:17:05 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #1699 "announce to multiple trackers at once" -- fix minor bug in reporting scrape results when an announce returns enough information that a separate scrape isn't necessary.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r9710 r9756  
    12741274            {
    12751275                tier->lastScrapeTime = now;
     1276                tier->lastScrapeSucceeded = 1;
    12761277                tier->scrapeAt = now + tier->scrapeIntervalSec;
    12771278            }
  • trunk/libtransmission/web.c

    r9754 r9756  
    141141    if( session && session->web )
    142142    {
    143         CURLMcode mcode;
    144143        CURL * e = curl_easy_init( );
    145144        struct tr_web * web = session->web;
     
    187186        if( task->range )
    188187            curl_easy_setopt( e, CURLOPT_RANGE, task->range );
    189         else /* don't set encoding on webseeds; it messes up binary data */
    190             curl_easy_setopt( e, CURLOPT_ENCODING, "" );
    191 
    192         mcode = curl_multi_add_handle( web->multi, e );
    193         ++web->taskCount;
     188
     189        if( curl_multi_add_handle( web->multi, e ) == CURLM_OK )
     190            ++web->taskCount;
    194191    }
    195192}
Note: See TracChangeset for help on using the changeset viewer.