(trukn libT) lessen the importance of error messages returned by trackers in a multi-tracker torrent. It's all too often that people will load up a .torrent file with dozens of announce URLs, many of them dead...

This commit is contained in:
Jordan Lee 2011-06-25 18:47:35 +00:00
parent 42a49a6c70
commit 34642e7259
1 changed files with 7 additions and 1 deletions

View File

@ -1054,7 +1054,13 @@ on_announce_done( const tr_announce_response * response,
}
else if( response->errmsg )
{
publishError( tier, response->errmsg );
/* If the torrent's only tracker returned an error, publish it.
Don't bother publishing if there are other trackers -- it's
all too common for people to load up dozens of dead trackers
in a torrent's metainfo... */
if( tier->tor->info.trackerCount < 2 )
publishError( tier, response->errmsg );
on_announce_error( tier, response->errmsg, event );
}
else