aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Hanley <felix@userspace.com.au>2018-03-23 06:31:40 +0000
committerFelix Hanley <felix@userspace.com.au>2018-03-23 06:31:40 +0000
commitc95042a0644657e626093d3d6558ef8851bb248d (patch)
tree00936b001d2c174ca1e541bb6e5290ccc67c251c
parentbf23707367d168d1b6ecac044fa0fc202d641b3e (diff)
downloaddhtsearch-c95042a0644657e626093d3d6558ef8851bb248d.tar.gz
dhtsearch-c95042a0644657e626093d3d6558ef8851bb248d.tar.bz2
Remove torrent when skipped
-rw-r--r--cmd/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/main.go b/cmd/main.go
index b09975c..1243d9f 100644
--- a/cmd/main.go
+++ b/cmd/main.go
@@ -187,6 +187,7 @@ func startBTWorkers(s models.TorrentStore) {
if skipTag == tg {
log.Debug("skipping torrent", "infohash", t.Infohash, "tags", tags)
ihBlacklist.Add(t.Infohash.String(), true)
+ s.RemoveTorrent(&t)
return
}
}