added catch blocks to lsd. changed bind expressions to use operators
This commit is contained in:
@@ -244,8 +244,7 @@ int peer_index(libtorrent::tcp::endpoint addr, std::vector<libtorrent::peer_info
|
||||
{
|
||||
using namespace libtorrent;
|
||||
std::vector<peer_info>::const_iterator i = std::find_if(peers.begin()
|
||||
, peers.end(), boost::bind(std::equal_to<libtorrent::tcp::endpoint>()
|
||||
, bind(&peer_info::ip, _1), addr));
|
||||
, peers.end(), bind(&peer_info::ip, _1) == addr);
|
||||
if (i == peers.end()) return -1;
|
||||
|
||||
return i - peers.begin();
|
||||
|
Reference in New Issue
Block a user