(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:
Charles Kerr
2008-09-14 00:57:11 +00:00
parent 8b7b3d3a18
commit 47292055ca
+3
View File
@@ -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;