*** empty log message ***

This commit is contained in:
Arvid Norberg 2003-10-27 16:06:00 +00:00
parent fb4fa20744
commit c0f8ea13e4
3 changed files with 16 additions and 4 deletions

View File

@ -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);

View File

@ -114,10 +114,14 @@ namespace libtorrent
}
void policy::peer_from_tracker(const address& remote, const peer_id& id)
{
try
{
m_torrent->connect_to_peer(remote, id);
m_num_peers++;
}
catch(network_error&) {}
}
// this is called when we are choked by a peer
// i.e. a peer lets us know that we will not receive

View File

@ -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;