*** empty log message ***
This commit is contained in:
parent
fb4fa20744
commit
c0f8ea13e4
|
@ -173,6 +173,12 @@ namespace libtorrent
|
|||
{
|
||||
m_ses->run(m_listen_port);
|
||||
}
|
||||
catch(std::exception& e)
|
||||
{
|
||||
std::cerr << typeid(e).name() << "\n";
|
||||
std::cerr << e.what() << "\n";
|
||||
assert(false);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
assert(false);
|
||||
|
|
|
@ -115,8 +115,12 @@ namespace libtorrent
|
|||
|
||||
void policy::peer_from_tracker(const address& remote, const peer_id& id)
|
||||
{
|
||||
m_torrent->connect_to_peer(remote, id);
|
||||
m_num_peers++;
|
||||
try
|
||||
{
|
||||
m_torrent->connect_to_peer(remote, id);
|
||||
m_num_peers++;
|
||||
}
|
||||
catch(network_error&) {}
|
||||
}
|
||||
|
||||
// this is called when we are choked by a peer
|
||||
|
|
|
@ -254,7 +254,8 @@ namespace libtorrent
|
|||
// ************************
|
||||
|
||||
// let the writable clients send data
|
||||
for (std::vector<boost::shared_ptr<socket> >::iterator i = writable_clients.begin();
|
||||
for (std::vector<boost::shared_ptr<socket> >::iterator i
|
||||
= writable_clients.begin();
|
||||
i != writable_clients.end();
|
||||
++i)
|
||||
{
|
||||
|
@ -313,7 +314,8 @@ namespace libtorrent
|
|||
|
||||
// loop over all clients and purge the ones that has timed out
|
||||
// and check if they have pending data to be sent
|
||||
for (connection_map::iterator i = m_connections.begin(); i != m_connections.end();)
|
||||
for (connection_map::iterator i = m_connections.begin();
|
||||
i != m_connections.end();)
|
||||
{
|
||||
connection_map::iterator j = i;
|
||||
++i;
|
||||
|
|
Loading…
Reference in New Issue