mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Refactor Application shutdown using new Service, AsyncService interfaces
This commit is contained in:
@@ -523,17 +523,8 @@ void LedgerConsensus::stateAccepted ()
|
||||
endConsensus ();
|
||||
}
|
||||
|
||||
// VFALCO TODO implement shutdown without a naked global
|
||||
extern volatile bool doShutdown;
|
||||
|
||||
void LedgerConsensus::timerEntry ()
|
||||
{
|
||||
if (doShutdown)
|
||||
{
|
||||
WriteLog (lsFATAL, LedgerConsensus) << "Shutdown requested";
|
||||
getApp().stop ();
|
||||
}
|
||||
|
||||
if ((mState != lcsFINISHED) && (mState != lcsACCEPTED))
|
||||
checkLCL ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user