mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(libT) #1269: check for the `downloaded' key in the announce repsonse. a successful announce response already resets the rescrape countdown, so that half of the ticket is redundant.
This commit is contained in:
@@ -365,6 +365,9 @@ onTrackerResponse( tr_session * session,
|
||||
if(( tr_bencDictFindInt( &benc, "incomplete", &i )))
|
||||
t->leecherCount = incomplete = i;
|
||||
|
||||
if(( tr_bencDictFindInt( &benc, "downloaded", &i )))
|
||||
t->timesDownloaded = i;
|
||||
|
||||
if(( tmp = tr_bencDictFind( &benc, "peers" )))
|
||||
{
|
||||
const int allAreSeeds = incomplete == 0;
|
||||
|
||||
Reference in New Issue
Block a user