From 86e34977de983f76fd0d933d42aec1677f2cc57d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 14 Apr 2016 17:28:30 +1000 Subject: [PATCH] piece-file storage: Use the receiver-local FileStore field Because aliens, mainly. --- storage/piece_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/piece_file.go b/storage/piece_file.go index 5656eedd..e77a3e7e 100644 --- a/storage/piece_file.go +++ b/storage/piece_file.go @@ -52,7 +52,7 @@ func (me pieceFileTorrentStoragePiece) incompletePath() string { } 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() } -- 2.48.1