removed redundant code
This commit is contained in:
parent
e3c07c0934
commit
6b2148cb39
|
@ -2773,6 +2773,8 @@ namespace libtorrent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disconnect if the peer has the same peer-id as ourself
|
||||||
|
// since it most likely is ourself then
|
||||||
if (pid == m_ses.get_peer_id())
|
if (pid == m_ses.get_peer_id())
|
||||||
{
|
{
|
||||||
if (peer_info_struct()) peer_info_struct()->banned = true;
|
if (peer_info_struct()) peer_info_struct()->banned = true;
|
||||||
|
@ -2788,15 +2790,6 @@ namespace libtorrent
|
||||||
if (m_max_out_request_queue > 50) m_max_out_request_queue = 50;
|
if (m_max_out_request_queue > 50) m_max_out_request_queue = 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
// disconnect if the peer has the same peer-id as ourself
|
|
||||||
// since it most likely is ourself then
|
|
||||||
if (pid == m_ses.get_peer_id())
|
|
||||||
{
|
|
||||||
if (peer_info_struct()) peer_info_struct()->banned = true;
|
|
||||||
disconnect("closing connection to ourself", 1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_EXTENSIONS
|
#ifndef TORRENT_DISABLE_EXTENSIONS
|
||||||
for (extension_list_t::iterator i = m_extensions.begin()
|
for (extension_list_t::iterator i = m_extensions.begin()
|
||||||
, end(m_extensions.end()); i != end;)
|
, end(m_extensions.end()); i != end;)
|
||||||
|
|
Loading…
Reference in New Issue