diff --git a/src/core/curl_get.h b/src/core/curl_get.h index e66257ed..634feffe 100644 --- a/src/core/curl_get.h +++ b/src/core/curl_get.h @@ -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(); diff --git a/src/core/curl_stack.cc b/src/core/curl_stack.cc index e45ff641..e8c15c6b 100644 --- a/src/core/curl_stack.cc +++ b/src/core/curl_stack.cc @@ -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