mmap storage: Close pieceCompletion on Close

This commit is contained in:
Matt Joiner 2016-07-06 14:02:15 +10:00
parent dbb3c25b1a
commit cd1c1a9fed
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ func (ts *mmapTorrentStorage) Piece(p metainfo.Piece) Piece {
} }
func (ts *mmapTorrentStorage) Close() error { func (ts *mmapTorrentStorage) Close() error {
ts.span.Close() ts.pc.Close()
return nil return ts.span.Close()
} }
type mmapStoragePiece struct { type mmapStoragePiece struct {