Changeset 11451


Ignore:
Timestamp:
Dec 3, 2010, 11:14:04 PM (11 years ago)
Author:
charles
Message:

fix irrelevant text formatting error. :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r11450 r11451  
    605605}
    606606
    607 static void 
    608 publishErrorMessageAndStop( tr_tier * tier, const char * msg ) 
    609 { 
    610     tier->isRunning = FALSE; 
    611 
    612     publishMessage( tier, msg, TR_TRACKER_ERROR ); 
    613 } 
     607static void
     608publishErrorMessageAndStop( tr_tier * tier, const char * msg )
     609{
     610    tier->isRunning = FALSE;
     611
     612    publishMessage( tier, msg, TR_TRACKER_ERROR );
     613}
    614614
    615615static void
     
    14541454            tier->manualAnnounceAllowedAt = now + tier->announceMinIntervalSec;
    14551455        }
    1456         else if( ( responseCode == 404 ) || ( 500 <= responseCode && responseCode <= 599 ) ) 
     1456        else if( ( responseCode == 404 ) || ( 500 <= responseCode && responseCode <= 599 ) )
    14571457        {
    14581458            /* 404: The requested resource could not be found but may be
     
    14681468            tierAddAnnounce( tier, announceEvent, now + interval );
    14691469        }
    1470         else if( 400 <= responseCode && responseCode <= 499 ) 
    1471         { 
    1472             /* The request could not be understood by the server due to 
    1473              * malformed syntax. The client SHOULD NOT repeat the 
    1474              * request without modifications. */ 
    1475             if( tr_torrentIsPrivate( tier->tor ) || ( tier->tor->info.trackerCount < 2 ) ) 
    1476                 publishErrorMessageAndStop( tier, _( "Tracker returned a 4xx message" ) ); 
    1477             tier->announceAt = 0; 
    1478             tier->manualAnnounceAllowedAt = ~(time_t)0; 
    1479         } 
     1470        else if( 400 <= responseCode && responseCode <= 499 )
     1471        {
     1472            /* The request could not be understood by the server due to
     1473             * malformed syntax. The client SHOULD NOT repeat the
     1474             * request without modifications. */
     1475            if( tr_torrentIsPrivate( tier->tor ) || ( tier->tor->info.trackerCount < 2 ) )
     1476                publishErrorMessageAndStop( tier, _( "Tracker returned a 4xx message" ) );
     1477            tier->announceAt = 0;
     1478            tier->manualAnnounceAllowedAt = ~(time_t)0;
     1479        }
    14801480        else
    14811481        {
Note: See TracChangeset for help on using the changeset viewer.