move an assert

This commit is contained in:
Arvid Norberg 2011-01-16 22:22:33 +00:00
parent a2df36afcd
commit 8c851b4d34
1 changed files with 1 additions and 1 deletions

View File

@ -570,12 +570,12 @@ namespace libtorrent
return; return;
} }
m_remote = m_socket->remote_endpoint(ec); m_remote = m_socket->remote_endpoint(ec);
TORRENT_ASSERT(m_remote.address() != address_v4::any());
if (ec) if (ec)
{ {
disconnect(ec); disconnect(ec);
return; return;
} }
TORRENT_ASSERT(m_remote.address() != address_v4::any());
if (m_remote.address().is_v4()) if (m_remote.address().is_v4())
m_socket->set_option(type_of_service(m_ses.settings().peer_tos), ec); m_socket->set_option(type_of_service(m_ses.settings().peer_tos), ec);
} }