Merge pull request #161 from mlmhl/event

signal an event when torrent closed
This commit is contained in:
Matt Joiner 2017-06-05 20:47:58 +10:00 committed by GitHub
commit ac0af8e3f6
1 changed files with 1 additions and 0 deletions

View File

@ -553,6 +553,7 @@ func (t *Torrent) close() (err error) {
for conn := range t.conns { for conn := range t.conns {
conn.Close() conn.Close()
} }
t.cl.event.Broadcast()
t.pieceStateChanges.Close() t.pieceStateChanges.Close()
t.updateWantPeersEvent() t.updateWantPeersEvent()
return return