diff --git a/src/command_events.cc b/src/command_events.cc index 937b336c..0ab26143 100644 --- a/src/command_events.cc +++ b/src/command_events.cc @@ -114,6 +114,9 @@ apply_on_ratio(int action, const torrent::Object& rawArgs) { (itr = std::find_if(itr, downloadList->end(), std::mem_fun(&core::Download::is_seeding))) != downloadList->end(); ) { core::Download* current = *itr++; + if (rpc::call_command_value("d.get_ignore_commands", rpc::make_target(current)) != 0) + continue; + int64_t totalDone = current->download()->bytes_done(); int64_t totalUpload = current->download()->up_rate()->total(); diff --git a/src/core/curl_stack.cc b/src/core/curl_stack.cc index a4bc212a..de2c5bd6 100644 --- a/src/core/curl_stack.cc +++ b/src/core/curl_stack.cc @@ -55,11 +55,11 @@ CurlStack::CurlStack() : m_taskTimeout.set_slot(rak::mem_fn(this, &CurlStack::receive_timeout)); - curl_multi_setopt((CURLM*)m_handle, CURLMOPT_TIMERDATA, this); - curl_multi_setopt((CURLM*)m_handle, CURLMOPT_SOCKETDATA, this); #if (LIBCURL_VERSION_NUM >= 0x071000) + curl_multi_setopt((CURLM*)m_handle, CURLMOPT_TIMERDATA, this); curl_multi_setopt((CURLM*)m_handle, CURLMOPT_TIMERFUNCTION, &CurlStack::set_timeout); #endif + curl_multi_setopt((CURLM*)m_handle, CURLMOPT_SOCKETDATA, this); curl_multi_setopt((CURLM*)m_handle, CURLMOPT_SOCKETFUNCTION, &CurlSocket::receive_socket); }