Fix possible deadlock

This commit is contained in:
Matt Joiner 2016-04-04 20:39:57 +10:00
parent deea9d2192
commit 49a3c87a53
1 changed files with 1 additions and 1 deletions

View 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)
}