summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2007-11-26 06:07:47 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2007-11-26 06:07:47 +0000
commit1698c57f580ce5abd15a009fad9f5bbb77debdb5 (patch)
tree62346206998806c6053db22b7fa32e50ed0e35a8
parentf96cc8e56abe3b78b1640ed2c7fc14b6d85b8ffd (diff)
downloaddeluge-1698c57f580ce5abd15a009fad9f5bbb77debdb5.tar.gz
deluge-1698c57f580ce5abd15a009fad9f5bbb77debdb5.tar.bz2
deluge-1698c57f580ce5abd15a009fad9f5bbb77debdb5.zip
tweak get_index_from_unique_id
-rw-r--r--src/deluge_core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp
index 2eb9c1d19..f4adc83d7 100644
--- a/src/deluge_core.cpp
+++ b/src/deluge_core.cpp
@@ -185,6 +185,7 @@ long get_index_from_unique_ID(long unique_ID)
for (unsigned long i = 0; i < M_torrents->size(); i++)
if ((*M_torrents)[i].unique_ID == unique_ID)
return i;
+ RAISE_INT(DelugeError, "No such unique_ID.");
}
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");
}
- RAISE_INT(DelugeError, "No such unique_ID.");
}
partial_piece_info internal_get_piece_info(torrent_handle h, long piece_index)