Browse Source

even more diagnostics

cl-refactor
arkpar 10 years ago
parent
commit
f3850a5e8a
  1. 7
      libethereum/EthereumHost.cpp

7
libethereum/EthereumHost.cpp

@ -317,9 +317,16 @@ void EthereumHost::onPeerTransactions(std::shared_ptr<EthereumPeer> _peer, RLP c
void EthereumHost::onPeerAborting() void EthereumHost::onPeerAborting()
{ {
Guard l(x_sync); Guard l(x_sync);
try
{
if (m_sync) if (m_sync)
m_sync->onPeerAborting(); m_sync->onPeerAborting();
} }
catch (Exception&)
{
cwarn << "Exception on peer destruciton: " << boost::current_exception_diagnostic_information();
}
}
bool EthereumHost::isSyncing() const bool EthereumHost::isSyncing() const
{ {

Loading…
Cancel
Save