mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 23:48:40 +00:00
tweak get_index_from_unique_id
This commit is contained in:
parent
f96cc8e56a
commit
1698c57f58
1 changed files with 1 additions and 1 deletions
|
@ -185,6 +185,7 @@ long get_index_from_unique_ID(long unique_ID)
|
||||||
for (unsigned long i = 0; i < M_torrents->size(); i++)
|
for (unsigned long i = 0; i < M_torrents->size(); i++)
|
||||||
if ((*M_torrents)[i].unique_ID == unique_ID)
|
if ((*M_torrents)[i].unique_ID == unique_ID)
|
||||||
return i;
|
return i;
|
||||||
|
RAISE_INT(DelugeError, "No such unique_ID.");
|
||||||
}
|
}
|
||||||
catch(invalid_handle&)
|
catch(invalid_handle&)
|
||||||
{
|
{
|
||||||
|
@ -194,7 +195,6 @@ long get_index_from_unique_ID(long unique_ID)
|
||||||
{
|
{
|
||||||
printf("unknown error on get_index_from_unique_ID. call batman.\n");
|
printf("unknown error on get_index_from_unique_ID. call batman.\n");
|
||||||
}
|
}
|
||||||
RAISE_INT(DelugeError, "No such unique_ID.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
partial_piece_info internal_get_piece_info(torrent_handle h, long piece_index)
|
partial_piece_info internal_get_piece_info(torrent_handle h, long piece_index)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue