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 {
|
||||
ts.span.Close()
|
||||
return nil
|
||||
ts.pc.Close()
|
||||
return ts.span.Close()
|
||||
}
|
||||
|
||||
type mmapStoragePiece struct {
|
||||
|
|
Loading…
Reference in New Issue