From cd1c1a9fed8763156150b3a1167b108da6f70d0f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 6 Jul 2016 14:02:15 +1000 Subject: [PATCH] mmap storage: Close pieceCompletion on Close --- storage/mmap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage/mmap.go b/storage/mmap.go index 05441649..d3f9235a 100644 --- a/storage/mmap.go +++ b/storage/mmap.go @@ -49,8 +49,8 @@ func (ts *mmapTorrentStorage) Piece(p metainfo.Piece) Piece { } func (ts *mmapTorrentStorage) Close() error { - ts.span.Close() - return nil + ts.pc.Close() + return ts.span.Close() } type mmapStoragePiece struct { -- 2.50.0