diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 221f6a01..adc4f869 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -270,6 +270,7 @@ func downloadErr(args []string, parent *tagflag.Parser) error { client.WriteStatus(w) }) addTorrents(client) + defer outputStats(client) if client.WaitAll() { log.Print("downloaded ALL the torrents") } else { @@ -279,7 +280,6 @@ func downloadErr(args []string, parent *tagflag.Parser) error { outputStats(client) <-stop.C() } - outputStats(client) return nil }