Triage announcer leak on dropped torrents

This commit is contained in:
Matt Joiner 2014-07-24 13:46:14 +10:00
parent 324fb94684
commit 3a852886ad
1 changed files with 3 additions and 0 deletions

View File

@ -1008,6 +1008,9 @@ func (cl *Client) announceTorrent(t *torrent) {
newAnnounce:
for {
cl.mu.Lock()
if t.isClosed() {
return
}
req.Left = t.BytesLeft()
cl.mu.Unlock()
for _, tier := range t.Trackers {