From a3d231cb928e075c0c4f178862350a97cc07cf44 Mon Sep 17 00:00:00 2001 From: mlmhl <409107750@qq.com> Date: Sat, 3 Jun 2017 16:42:40 +0800 Subject: [PATCH] signal an event when torrent closed --- torrent.go | 1 + 1 file changed, 1 insertion(+) 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