From: Matt Joiner Date: Sun, 3 Apr 2016 10:54:14 +0000 (+1000) Subject: Fix deadlocks in WriteStatus due to incomplete renaming X-Git-Tag: v1.0.0~794 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=22ad6544200f9bca2b142d8b4136feba10d406f3;p=btrtrc.git Fix deadlocks in WriteStatus due to incomplete renaming --- 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() {