Changeset 6617


Ignore:
Timestamp:
Aug 21, 2008, 8:18:34 PM (13 years ago)
Author:
charles
Message:

maybe fix m1b's tracker issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r6613 r6617  
    108108    time_t manualAnnounceAllowedAt;
    109109    time_t reannounceAt;
     110
     111    /* 0==never, 1==in progress, other values==when to scrape */
    110112    time_t scrapeAt;
    111113
     
    718720            t->reannounceAt = 1;
    719721            t->manualAnnounceAllowedAt = 1;
    720             t->scrapeAt = req->reqtype == TR_REQ_STOPPED
    721                         ? now + t->scrapeIntervalSec + t->randOffset
    722                         : 0;
    723722        }
    724723    }
     
    732731}
    733732
    734 static void ensureGlobalsExist( tr_session * );
    735 
    736733static void
    737734enqueueScrape( tr_session * session, tr_tracker * tracker )
    738735{
    739736    struct tr_tracker_request * req;
    740     ensureGlobalsExist( session );
    741737    req = createScrape( session, tracker );
    742738    tr_runInEventThread( session, invokeRequest, req );
     
    747743{
    748744    struct tr_tracker_request * req;
    749     ensureGlobalsExist( session );
    750745    req = createRequest( session, tracker, reqtype );
    751746    tr_runInEventThread( session, invokeRequest, req );
     
    857852    const tr_info * info = &torrent->info;
    858853    tr_tracker * t;
     854
     855    ensureGlobalsExist( torrent->handle );
    859856
    860857    t = tr_new0( tr_tracker, 1 );
Note: See TracChangeset for help on using the changeset viewer.