forked from premiere/premiere-libtorrent
move an assert
This commit is contained in:
parent
a2df36afcd
commit
8c851b4d34
|
@ -570,12 +570,12 @@ namespace libtorrent
|
|||
return;
|
||||
}
|
||||
m_remote = m_socket->remote_endpoint(ec);
|
||||
TORRENT_ASSERT(m_remote.address() != address_v4::any());
|
||||
if (ec)
|
||||
{
|
||||
disconnect(ec);
|
||||
return;
|
||||
}
|
||||
TORRENT_ASSERT(m_remote.address() != address_v4::any());
|
||||
if (m_remote.address().is_v4())
|
||||
m_socket->set_option(type_of_service(m_ses.settings().peer_tos), ec);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue