made policy::has_connection not throw
This commit is contained in:
@@ -1373,7 +1373,8 @@ namespace libtorrent
|
|||||||
INVARIANT_CHECK;
|
INVARIANT_CHECK;
|
||||||
|
|
||||||
assert(c);
|
assert(c);
|
||||||
assert(c->remote() == c->get_socket()->remote_endpoint());
|
try { assert(c->remote() == c->get_socket()->remote_endpoint()); }
|
||||||
|
catch (std::exception&) {}
|
||||||
|
|
||||||
return std::find_if(
|
return std::find_if(
|
||||||
m_peers.begin()
|
m_peers.begin()
|
||||||
|
Reference in New Issue
Block a user