signal an event when torrent closed

This commit is contained in:
mlmhl 2017-06-03 16:42:40 +08:00 committed by luffyma(马林)
parent 77e81061f5
commit a3d231cb92
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 {
conn.Close()
}
t.cl.event.Broadcast()
t.pieceStateChanges.Close()
t.updateWantPeersEvent()
return