From 0141aadf3e1de4a0028ec76c3f2779d69289bae3 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 16 Dec 2015 11:25:13 -0500 Subject: [PATCH] Use alertable_sleep_for in LoadManager: This allows the LoadManager to exit immediately instead of sleeping for up to 1 second on a stop. --- src/ripple/app/main/LoadManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/main/LoadManager.cpp b/src/ripple/app/main/LoadManager.cpp index 6266d2a4d..5c116e931 100644 --- a/src/ripple/app/main/LoadManager.cpp +++ b/src/ripple/app/main/LoadManager.cpp @@ -190,7 +190,7 @@ void LoadManager::run () } else { - std::this_thread::sleep_for (duration); + alertable_sleep_for(duration); } }