mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Shutdown cleanly on control-C.
This commit is contained in:
@@ -644,8 +644,16 @@ void LedgerConsensus::stateAccepted()
|
||||
endConsensus();
|
||||
}
|
||||
|
||||
extern volatile bool doShutdown;
|
||||
|
||||
void LedgerConsensus::timerEntry()
|
||||
{
|
||||
if (doShutdown)
|
||||
{
|
||||
cLog(lsFATAL) << "Shutdown requested";
|
||||
theApp->stop();
|
||||
}
|
||||
|
||||
if ((mState != lcsFINISHED) && (mState != lcsACCEPTED))
|
||||
checkLCL();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user