mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix last commit
This commit is contained in:
@@ -85,5 +85,6 @@ func (p *DiskPiece) Release() {
|
||||
|
||||
os.Remove(p.name)
|
||||
|
||||
//p.piece.cache.torrent.Piece(p.piece.Id).SetPriority(torrent.PiecePriorityNone)
|
||||
p.piece.cache.torrent.Piece(p.piece.Id).SetPriority(torrent.PiecePriorityNone)
|
||||
p.piece.cache.torrent.Piece(p.piece.Id).UpdateCompletion()
|
||||
}
|
||||
|
||||
@@ -70,5 +70,6 @@ func (p *MemPiece) Release() {
|
||||
p.piece.Size = 0
|
||||
p.piece.Complete = false
|
||||
|
||||
//p.piece.cache.torrent.Piece(p.piece.Id).SetPriority(torrent.PiecePriorityNone)
|
||||
p.piece.cache.torrent.Piece(p.piece.Id).SetPriority(torrent.PiecePriorityNone)
|
||||
p.piece.cache.torrent.Piece(p.piece.Id).UpdateCompletion()
|
||||
}
|
||||
|
||||
@@ -73,9 +73,9 @@ func (p *Piece) Release() {
|
||||
} else {
|
||||
p.dPiece.Release()
|
||||
}
|
||||
if !p.cache.isClosed {
|
||||
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
||||
// fix remove pieces hash and rewind
|
||||
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()
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user