Switch to QThread::sleep
This commit is contained in:
@@ -1135,10 +1135,8 @@ void RPC::shutdownZcashd() {
|
|||||||
} else {
|
} else {
|
||||||
while (waiter.isActive()) {
|
while (waiter.isActive()) {
|
||||||
QCoreApplication::processEvents();
|
QCoreApplication::processEvents();
|
||||||
#ifdef _WIN32
|
|
||||||
#else
|
QThread::sleep(1);
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user