verify only full piece

This commit is contained in:
orignal committed 2026-11-24 21:56:10 -05:00
1 parent dc10909f18
commit 524b63d0de
1 file changed
+1 -1
+1 -1
View File
@@ -1497,7 +1497,7 @@ namespace torrents
pieceFailed = true;
remainingLen -= len;
nextPieceOffset += len;
if (nextPieceOffset == m_PieceLength || !remainingLen)
if (nextPieceOffset == m_Pieces[m_NumPiecesChecked].GetSize ())
{
// piece complete
if (verifyPiece)