fix remove cache file

This commit is contained in:
YouROK
2021-06-22 08:38:53 +03:00
parent 29956cf0a7
commit e0a22a7d02

View File

@@ -83,5 +83,7 @@ func (p *DiskPiece) Release() {
p.piece.Size = 0
p.piece.Complete = false
os.Remove(p.name)
p.piece.cache.torrent.Piece(p.piece.Id).SetPriority(torrent.PiecePriorityNone)
}