storage/piece_file.go | 2 +- diff --git a/storage/piece_file.go b/storage/piece_file.go index 5656eedd78c15d26da028e919ebcc5e043f4e8a6..e77a3e7eeab2a8dc839e4effdb13a10c51d49b64 100644 --- a/storage/piece_file.go +++ b/storage/piece_file.go @@ -52,7 +52,7 @@ return path.Join("incomplete", me.p.Hash().HexString()) } func (me pieceFileTorrentStoragePiece) GetIsComplete() bool { - fi, err := me.ts.s.fs.Stat(me.completedPath()) + fi, err := me.fs.Stat(me.completedPath()) return err == nil && fi.Size() == me.p.Length() }