Merge pull request #161 from mlmhl/event
signal an event when torrent closed
This commit is contained in:
commit
ac0af8e3f6
|
@ -553,6 +553,7 @@ func (t *Torrent) close() (err error) {
|
|||
for conn := range t.conns {
|
||||
conn.Close()
|
||||
}
|
||||
t.cl.event.Broadcast()
|
||||
t.pieceStateChanges.Close()
|
||||
t.updateWantPeersEvent()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue