fixed boost-1.34 compatibility
This commit is contained in:
parent
7529225870
commit
13ceee7a55
|
@ -2761,13 +2761,13 @@ namespace libtorrent
|
||||||
boost::intrusive_ptr<peer_connection> c;
|
boost::intrusive_ptr<peer_connection> c;
|
||||||
if (web.type == web_seed_entry::url_seed)
|
if (web.type == web_seed_entry::url_seed)
|
||||||
{
|
{
|
||||||
c.reset(new (std::nothrow) web_peer_connection(
|
c = new (std::nothrow) web_peer_connection(
|
||||||
m_ses, shared_from_this(), s, a, web.url, 0));
|
m_ses, shared_from_this(), s, a, web.url, 0);
|
||||||
}
|
}
|
||||||
else if (web.type == web_seed_entry::http_seed)
|
else if (web.type == web_seed_entry::http_seed)
|
||||||
{
|
{
|
||||||
c.reset(new (std::nothrow) http_seed_connection(
|
c = new (std::nothrow) http_seed_connection(
|
||||||
m_ses, shared_from_this(), s, a, web.url, 0));
|
m_ses, shared_from_this(), s, a, web.url, 0);
|
||||||
}
|
}
|
||||||
if (!c) return;
|
if (!c) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue