]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove torrent from download strategy when dropped
authorMatt Joiner <anacrolix@gmail.com>
Thu, 21 Aug 2014 15:25:18 +0000 (01:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 21 Aug 2014 15:25:18 +0000 (01:25 +1000)
client.go

index 7d0823674d2d6bfa6315a76f99a0b656cef46bc2..22265735a54b2bd116222f5a1930c89e634c7d78 100644 (file)
--- a/client.go
+++ b/client.go
@@ -983,6 +983,7 @@ func (me *Client) DropTorrent(infoHash InfoHash) (err error) {
                panic(err)
        }
        delete(me.torrents, infoHash)
+       me.downloadStrategy.TorrentStopped(t)
        return
 }