Use new API call.

This commit is contained in:
Jari Sundell
2011-12-11 17:52:10 +09:00
parent a2ad162fe3
commit 2d8036e3a8
+1 -1
View File
@@ -206,7 +206,7 @@ Manager::get_address_throttle(const sockaddr* addr) {
// Most of this should be possible to move out.
void
Manager::initialize_second() {
torrent::Http::set_factory(std::bind(&CurlStack::new_object, m_httpStack));
torrent::Http::slot_factory() = std::bind(&CurlStack::new_object, m_httpStack);
m_httpQueue->slot_factory(sigc::mem_fun(m_httpStack, &CurlStack::new_object));
CurlStack::global_init();