Experimental support for headless mode

This commit is contained in:
Aditya Kulkarni
2019-02-26 13:54:22 -08:00
parent 2ff1718fab
commit 4e259d6e6c
6 changed files with 332 additions and 48 deletions

View File

@@ -1116,8 +1116,15 @@ void RPC::shutdownZcashd() {
});
waiter.start(1000);
// Wait for the zcash process to exit.
d.exec();
// Wait for the zcash process to exit.
if (!Settings::getInstance()->isHeadless()) {
d.exec();
} else {
while (waiter.isActive()) {
QCoreApplication::processEvents();
std::this_thread::sleep_for(std::chrono::seconds(1));
}
}
}