added debug message to dht. fixed while loop around condition variable in checker thread.

This commit is contained in:
Arvid Norberg 2007-03-06 17:27:17 +00:00
parent 7e17ff9d4a
commit a3dbea606e
2 changed files with 5 additions and 2 deletions

View File

@ -322,8 +322,11 @@ void rpc_manager::invoke(int message_id, udp::endpoint target_addr
m_send(m);
new_transaction_id(o);
}
catch (std::exception&)
catch (std::exception& e)
{
#ifndef NDEBUG
std::cerr << e.what() << "\n";
#endif
assert(false);
}
}

View File

@ -120,7 +120,7 @@ namespace libtorrent { namespace detail
// if the job queue is empty and
// we shouldn't abort
// wait for a signal
if (m_torrents.empty() && !m_abort && !processing)
while (m_torrents.empty() && !m_abort && !processing)
m_cond.wait(l);
if (m_abort)