piece fix -micah
This commit is contained in:
parent
1897faf395
commit
9dd7f6c6cf
|
@ -763,7 +763,7 @@ static PyObject *torrent_has_piece(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
|
||||
torrent_status s = M_torrents->at(index).handle.status();
|
||||
if ((*s.pieces).size() == 0)
|
||||
if (s.pieces == 0)
|
||||
return Py_BuildValue("b", false);
|
||||
has_piece = internal_has_piece(*s.pieces, piece_index);
|
||||
return Py_BuildValue("b", has_piece);
|
||||
|
|
Loading…
Reference in New Issue