Changeset 5173


Ignore:
Timestamp:
Feb 29, 2008, 6:28:00 AM (14 years ago)
Author:
charles
Message:

get rid of the "tracker hasn't responded yet" message because it drives users insane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r5127 r5173  
    289289}
    290290
    291 static const char*
     291static void
    292292updateAddresses( tr_tracker * t, const struct evhttp_request * req, int * tryAgain )
    293293{
    294     const char * ret = NULL;
    295294    int moveToNextAddress = FALSE;
    296295
    297     if( !req )
    298     {
    299         ret = "Tracker hasn't responded yet.  Retrying...";
    300         tr_inf( ret );
    301 
     296    if( !req ) /* tracker didn't respond */
     297    {
    302298        moveToNextAddress = TRUE;
    303299    }
     
    352348            *tryAgain = FALSE;
    353349            t->addressIndex = 0;
    354             ret = "Tracker hasn't responded yet.  Retrying...";
    355             tr_inf( ret );
    356350        }
    357351    }
    358 
    359 
    360     return ret;
    361352}
    362353
     
    403394onTrackerResponse( struct evhttp_request * req, void * vhash )
    404395{
    405     const char * warning;
    406396    int tryAgain;
    407397    int responseCode;
     
    496486    }
    497487
    498     if (( warning = updateAddresses( t, req, &tryAgain ) )) {
    499         publishWarning( t, warning );
    500         tr_err( warning );
    501     }
     488    updateAddresses( t, req, &tryAgain );
    502489
    503490    /**
     
    570557onScrapeResponse( struct evhttp_request * req, void * vhash )
    571558{
    572     const char * warning;
    573559    int tryAgain;
    574560    time_t nextScrapeSec = 60;
     
    639625    }
    640626
    641     if (( warning = updateAddresses( t, req, &tryAgain ) ))
    642     {
    643         tr_err( warning );
    644         publishWarning( t, warning );
    645     }
     627    updateAddresses( t, req, &tryAgain );
    646628
    647629    if( tryAgain )
Note: See TracChangeset for help on using the changeset viewer.