fix small torrent issue
This commit is contained in:
parent
ae0d21f115
commit
23f744cada
|
@ -1066,9 +1066,9 @@ namespace libtorrent
|
||||||
|| m_piece_map[piece].priority(m_sequenced_download_threshold) < 2)
|
|| m_piece_map[piece].priority(m_sequenced_download_threshold) < 2)
|
||||||
{
|
{
|
||||||
++piece;
|
++piece;
|
||||||
|
if (piece == int(m_piece_map.size())) piece = 0;
|
||||||
// could not find any more pieces
|
// could not find any more pieces
|
||||||
if (piece == start_piece) return;
|
if (piece == start_piece) return;
|
||||||
if (piece == int(m_piece_map.size())) piece = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(m_piece_map[piece].downloading == false);
|
assert(m_piece_map[piece].downloading == false);
|
||||||
|
|
|
@ -1037,13 +1037,13 @@ namespace libtorrent
|
||||||
switch (buf.f_type)
|
switch (buf.f_type)
|
||||||
{
|
{
|
||||||
case 0x5346544e: // NTFS
|
case 0x5346544e: // NTFS
|
||||||
case 0x65735546: // NTFS-3G
|
|
||||||
case 0xEF51: // EXT2 OLD
|
case 0xEF51: // EXT2 OLD
|
||||||
case 0xEF53: // EXT2 and EXT3
|
case 0xEF53: // EXT2 and EXT3
|
||||||
case 0x00011954: // UFS
|
case 0x00011954: // UFS
|
||||||
case 0x52654973: // ReiserFS
|
case 0x52654973: // ReiserFS
|
||||||
case 0x52345362: // Reiser4
|
case 0x52345362: // Reiser4
|
||||||
case 0x58465342: // XFS
|
case 0x58465342: // XFS
|
||||||
|
case 0x65735546: // NTFS-3G
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue