From: mlmhl <409107750@qq.com> Date: Sat, 3 Jun 2017 08:42:40 +0000 (+0800) Subject: signal an event when torrent closed X-Git-Tag: v1.0.0~462^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a3d231cb928e075c0c4f178862350a97cc07cf44;p=btrtrc.git signal an event when torrent closed --- diff --git a/torrent.go b/torrent.go index 6da9d46a..f60b3865 100644 --- a/torrent.go +++ b/torrent.go @@ -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