mmap storage: Close pieceCompletion on Close
This commit is contained in:
parent
dbb3c25b1a
commit
cd1c1a9fed
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue