From: Matt Joiner Date: Mon, 4 Apr 2016 10:39:57 +0000 (+1000) Subject: Fix possible deadlock X-Git-Tag: v1.0.0~781 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=49a3c87a533b2d29ec13e655436a4790267429df;p=btrtrc.git Fix possible deadlock --- diff --git a/torrent.go b/torrent.go index 4e0082a6..12c365d6 100644 --- a/torrent.go +++ b/torrent.go @@ -459,7 +459,7 @@ func (t *Torrent) writeStatus(w io.Writer, cl *Client) { } func (t *Torrent) String() string { - s := t.Name() + s := t.name() if s == "" { s = fmt.Sprintf("%x", t.infoHash) }