#92 - Check process is alive before shuting it down

This commit is contained in:
adityapk00 2019-02-02 19:16:59 -08:00
parent d34e38cd73
commit 41edf32c71
1 changed files with 1 additions and 1 deletions

View File

@ -1056,7 +1056,7 @@ void RPC::refreshZECPrice() {
void RPC::shutdownZcashd() { void RPC::shutdownZcashd() {
// Shutdown embedded zcashd if it was started // Shutdown embedded zcashd if it was started
if (ezcashd == nullptr || conn == nullptr) { if (ezcashd == nullptr || ezcashd->processId() == 0 || conn == nullptr) {
// No zcashd running internally, just return // No zcashd running internally, just return
return; return;
} }