Changeset 41


Ignore:
Timestamp:
Jan 22, 2006, 3:29:52 AM (15 years ago)
Author:
joshe
Message:

Workaround for trackers that send an empty response to a stop event.
This has been annoying the hell out of me whenever I try to quit or otherwise stop a torrent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/oneport/libtransmission/tracker.c

    r40 r41  
    359359    if( i >= tc->pos - 18 )
    360360    {
    361         //tr_err( "Tracker: no dictionary in answer (%s)",
    362         //        tc->tor->info.trackerAddress );
     361        if( tc->stopped )
     362        {
     363            goto nodict;
     364        }
     365        tr_err( "Tracker: no dictionary in answer" );
    363366        // printf( "%s\n", tc->buf );
    364367        return;
     
    479482    }
    480483
     484nodict:
    481485    /* Success */
    482486    tc->started   = 0;
Note: See TracChangeset for help on using the changeset viewer.