mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
optimise peace.release()
This commit is contained in:
@@ -75,7 +75,8 @@ func (p *Piece) Release() {
|
|||||||
p.dPiece.Release()
|
p.dPiece.Release()
|
||||||
}
|
}
|
||||||
if !p.cache.isClosed {
|
if !p.cache.isClosed {
|
||||||
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
// UpdateCompletion() also handle PiecePriority
|
||||||
|
//p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
||||||
p.cache.torrent.Piece(p.Id).UpdateCompletion()
|
p.cache.torrent.Piece(p.Id).UpdateCompletion()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user