diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index c1ccf84c4c..ed43e3da25 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -522,6 +522,12 @@ bool serverOkay(std::string& reason) return false; } + if (theApp->isShutdown()) + { + reason = "Server is shutting down"; + return false; + } + if (theApp->getOPs().isNeedNetworkLedger()) { reason = "Not synchronized with network yet";