Use new Http API.

This commit is contained in:
Jari Sundell
2011-11-26 01:38:47 +09:00
parent 7b150ec834
commit 6c10f7e05d
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -51,6 +51,8 @@ class CurlStack;
class CurlGet : public torrent::Http {
public:
friend class CurlStack;
CurlGet(CurlStack* s) : m_active(false), m_handle(NULL), m_stack(s) {}
virtual ~CurlGet();
+2 -2
View File
@@ -133,9 +133,9 @@ CurlStack::transfer_done(void* handle, const char* msg) {
throw torrent::internal_error("Could not find CurlGet with the right easy_handle.");
if (msg == NULL)
torrent::slot_list_call((*itr)->signal_done());
(*itr)->trigger_done();
else
torrent::slot_list_call((*itr)->signal_failed(), msg);
(*itr)->trigger_failed(msg);
}
void