Fix deadlocks in WriteStatus due to incomplete renaming

This commit is contained in:
Matt Joiner 2016-04-03 20:54:14 +10:00
parent d3a1c79c79
commit 22ad654420
1 changed files with 2 additions and 2 deletions

View File

@ -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, "<unknown name>")
} else {
fmt.Fprint(w, t.Name())
fmt.Fprint(w, t.name())
}
fmt.Fprint(w, "\n")
if t.haveInfo() {