Don't start tracker scrapers if trackers are disabled

This commit is contained in:
Matt Joiner 2016-05-22 23:44:08 +10:00
parent 7a60873ec8
commit 512aa7ede4
1 changed files with 3 additions and 0 deletions

View File

@ -1155,6 +1155,9 @@ func (t *Torrent) seeding() bool {
// Adds and starts tracker scrapers for tracker URLs that aren't already
// running.
func (t *Torrent) startMissingTrackerScrapers() {
if t.cl.config.DisableTrackers {
return
}
for _, tier := range t.announceList() {
for _, trackerURL := range tier {
if _, ok := t.trackerAnnouncers[trackerURL]; ok {