From f23cf1d0e092e7b7a940141021f59f18ae84da95 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 20 Mar 2019 10:18:13 -0700 Subject: [PATCH] Switch to QThread::sleep --- src/rpc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index 7bd7253..a1636a3 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -1135,10 +1135,8 @@ void RPC::shutdownZcashd() { } else { while (waiter.isActive()) { QCoreApplication::processEvents(); -#ifdef _WIN32 -#else - std::this_thread::sleep_for(std::chrono::seconds(1)); -#endif + + QThread::sleep(1); } } }