]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix possible deadlock
authorMatt Joiner <anacrolix@gmail.com>
Mon, 4 Apr 2016 10:39:57 +0000 (20:39 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 4 Apr 2016 10:39:57 +0000 (20:39 +1000)
torrent.go

index 4e0082a6c0eb049df752ddb631102e1662cdccbf..12c365d685133b9211490e7350836fa03c47bbcc 100644 (file)
@@ -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)
        }