]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Don't lock Client in File.DisplayPath
authorMatt Joiner <anacrolix@gmail.com>
Thu, 25 Jan 2018 05:58:49 +0000 (16:58 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 25 Jan 2018 05:58:49 +0000 (16:58 +1100)
file.go

diff --git a/file.go b/file.go
index 70df07b499aaac82fe041150695fc423ca07a32e..7cc0ad64bf5d67f520ba37863f8c7d368fb78b13 100644 (file)
--- a/file.go
+++ b/file.go
@@ -46,7 +46,7 @@ func (f *File) Length() int64 {
 func (f *File) DisplayPath() string {
        fip := f.FileInfo().Path
        if len(fip) == 0 {
-               return f.t.Info().Name
+               return f.t.info.Name
        }
        return strings.Join(fip, "/")