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