Ignore:
Timestamp:
Nov 15, 2007, 2:34:51 PM (15 years ago)
Author:
charles
Message:

fix tracker redirect bug reported by sunny

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/libtransmission/tracker.c

    r3581 r3827  
    429429    assert( t->addressIndex < t->addressCount );
    430430
    431     return &t->addresses[t->addressIndex];
     431    return t->redirect ? t->redirect
     432                       : t->addresses + t->addressIndex;
    432433}
    433434static int
     
    905906    } else {
    906907        struct evhttp_request * req;
    907         tr_free( t->lastRequest );
    908         t->lastRequest = tr_strdup( eventName );
     908        if( eventName != t->lastRequest ) {
     909            tr_free( t->lastRequest );
     910            t->lastRequest = tr_strdup( eventName );
     911        }
    909912        if( isStopping ) {
    910913            evhttp_connection_set_timeout( evcon, STOP_TIMEOUT_INTERVAL_SEC );
Note: See TracChangeset for help on using the changeset viewer.