From dc11ecedd82a28c232dda8bc913baa6f28f97894 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 29 May 2013 17:16:54 -0700 Subject: [PATCH] Don't report available if shutting down. --- src/cpp/ripple/Application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 332a2e4d8..1da62bd3d 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -518,6 +518,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";