update web and fix merge

This commit is contained in:
nikk gitanes
2021-08-20 08:34:39 +03:00
parent b1f59bb3a1
commit 06b8a80d08
18 changed files with 142 additions and 203 deletions

View File

@@ -73,10 +73,9 @@ func (p *Piece) Release() {
} else {
p.dPiece.Release()
}
// TODO: check this merge
if !p.cache.isClosed {
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
// fix remove pieces hash
p.cache.torrent.Piece(p.Id).UpdateCompletion()
}
// if !p.cache.isClosed {
// p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
// // fix remove pieces hash
// p.cache.torrent.Piece(p.Id).UpdateCompletion()
// }
}