mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 16:19:23 +00:00
Use new Http API.
This commit is contained in:
@@ -51,6 +51,8 @@ class CurlStack;
|
|||||||
|
|
||||||
class CurlGet : public torrent::Http {
|
class CurlGet : public torrent::Http {
|
||||||
public:
|
public:
|
||||||
|
friend class CurlStack;
|
||||||
|
|
||||||
CurlGet(CurlStack* s) : m_active(false), m_handle(NULL), m_stack(s) {}
|
CurlGet(CurlStack* s) : m_active(false), m_handle(NULL), m_stack(s) {}
|
||||||
virtual ~CurlGet();
|
virtual ~CurlGet();
|
||||||
|
|
||||||
|
|||||||
@@ -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.");
|
throw torrent::internal_error("Could not find CurlGet with the right easy_handle.");
|
||||||
|
|
||||||
if (msg == NULL)
|
if (msg == NULL)
|
||||||
torrent::slot_list_call((*itr)->signal_done());
|
(*itr)->trigger_done();
|
||||||
else
|
else
|
||||||
torrent::slot_list_call((*itr)->signal_failed(), msg);
|
(*itr)->trigger_failed(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user