mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 13:35:54 +00:00
Detect server deadlocks and trigger the auto-restart mechanism.
This commit is contained in:
@@ -593,6 +593,8 @@ void NetworkOPs::checkState(const boost::system::error_code& result)
|
||||
{
|
||||
ScopedLock sl(theApp->getMasterLock());
|
||||
|
||||
theApp->getLoadManager().noDeadLock();
|
||||
|
||||
std::vector<Peer::pointer> peerList = theApp->getConnectionPool().getPeerVector();
|
||||
|
||||
// do we have sufficient peers? If not, we are disconnected.
|
||||
|
||||
Reference in New Issue
Block a user