added debug message to dht. fixed while loop around condition variable in checker thread.
This commit is contained in:
parent
7e17ff9d4a
commit
a3dbea606e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue