From 22ad6544200f9bca2b142d8b4136feba10d406f3 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 3 Apr 2016 20:54:14 +1000 Subject: [PATCH] Fix deadlocks in WriteStatus due to incomplete renaming --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index c03da726..134748d4 100644 --- a/client.go +++ b/client.go @@ -240,10 +240,10 @@ func (cl *Client) WriteStatus(_w io.Writer) { fmt.Fprintf(w, "# Torrents: %d\n", len(cl.torrents)) fmt.Fprintln(w) for _, t := range cl.sortedTorrents() { - if t.Name() == "" { + if t.name() == "" { fmt.Fprint(w, "") } else { - fmt.Fprint(w, t.Name()) + fmt.Fprint(w, t.name()) } fmt.Fprint(w, "\n") if t.haveInfo() { -- 2.48.1