fix last piece oops
This commit is contained in:
parent
e84d6cf588
commit
6e1a1b88fa
@ -1436,7 +1436,7 @@ static PyObject *torrent_set_flp(PyObject *self, PyObject *args)
|
||||
torrent_status s = t.handle.status();
|
||||
const torrent_info &i = t.handle.get_torrent_info();
|
||||
|
||||
int npieces = i.num_pieces();
|
||||
int npieces = i.num_pieces() - 1;
|
||||
|
||||
t.handle.piece_priority(0, num);
|
||||
t.handle.piece_priority(npieces, num);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user