mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
fix last piece oops
This commit is contained in:
parent
e84d6cf588
commit
6e1a1b88fa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue