From 6c10f7e05d23f9ec93eda6efed44bce4db84dd9e Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Sat, 26 Nov 2011 01:38:47 +0900 Subject: [PATCH] Use new Http API. --- src/core/curl_get.h | 2 ++ src/core/curl_stack.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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