mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 03:02:30 +00:00
* Select the proper encoding for a torrent's name so that multi-file
torrents get the right root directory. * Properly clean up after catching a storage_error in EntryList::open(). * Added a funtion to torrent::Download for syncing chunks to disk, and made torrent::resume_save_progress(...) use it. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@736 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -76,15 +76,14 @@ CurlStack::perform() {
|
||||
int t;
|
||||
|
||||
do {
|
||||
CURLMsg* msg = curl_multi_info_read((CURLM*)m_handle, &t);
|
||||
CURLMsg* msg = curl_multi_info_read((CURLM*)m_handle, &t);
|
||||
|
||||
CurlGetList::iterator itr = std::find_if(m_getList.begin(), m_getList.end(),
|
||||
rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle)));
|
||||
CurlGetList::iterator itr = std::find_if(m_getList.begin(), m_getList.end(), rak::equal(msg->easy_handle, std::mem_fun(&CurlGet::handle)));
|
||||
|
||||
if (itr == m_getList.end())
|
||||
throw std::logic_error("Could not find CurlGet with the right easy_handle");
|
||||
|
||||
(*itr)->perform(msg);
|
||||
if (itr == m_getList.end())
|
||||
throw std::logic_error("Could not find CurlGet with the right easy_handle");
|
||||
|
||||
(*itr)->perform(msg);
|
||||
} while (t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user