made policy::has_connection not throw
This commit is contained in:
parent
b121386492
commit
847f96d9c3
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue