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 {
|
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
|
||||||
|
|
Loading…
Reference in New Issue