Ignore:
Timestamp:
Sep 25, 2011, 9:48:34 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #4507 "scrape min_request_interval no longer working" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer-http.c

    r12909 r12914  
    358358        int64_t intVal;
    359359        tr_benc * files;
     360        tr_benc * flags;
    360361        const char * str;
    361362        const int benc_loaded = !tr_bencLoad( msg, msglen, &top, NULL );
     
    381382                response->errmsg = tr_strdup( str );
    382383
    383             if( tr_bencDictFindInt( &top, "min_request_interval", &intVal ) )
    384                 response->min_request_interval = intVal;
     384            if( tr_bencDictFindDict( &top, "flags", &flags ) )
     385                if( tr_bencDictFindInt( flags, "min_request_interval", &intVal ) )
     386                    response->min_request_interval = intVal;
    385387
    386388            if( tr_bencDictFindDict( &top, "files", &files ) )
Note: See TracChangeset for help on using the changeset viewer.