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 {