Ошибка в очереди кусков
parent
565fab4a83
commit
edd034bdbb
|
@ -205,7 +205,7 @@ class TorrentFile(object):
|
||||||
if (next_piece + i < self.endPiece and
|
if (next_piece + i < self.endPiece and
|
||||||
not self.pieces_deadlined[(next_piece + i) - self.startPiece] and not self.havePiece(next_piece + i)):
|
not self.pieces_deadlined[(next_piece + i) - self.startPiece] and not self.havePiece(next_piece + i)):
|
||||||
self.tfs.handle.set_piece_deadline(next_piece + i, 70 + (20 * i))
|
self.tfs.handle.set_piece_deadline(next_piece + i, 70 + (20 * i))
|
||||||
self.pieces_deadlined[next_piece + i] = True
|
self.pieces_deadlined[(next_piece + i) - self.startPiece] = True
|
||||||
if not self.havePiece(piece):
|
if not self.havePiece(piece):
|
||||||
self.log('Waiting for piece %d' % (piece,))
|
self.log('Waiting for piece %d' % (piece,))
|
||||||
self.tfs.handle.set_piece_deadline(piece, 50)
|
self.tfs.handle.set_piece_deadline(piece, 50)
|
||||||
|
|
Loading…
Reference in New Issue