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