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); } } }