diff --git a/src/rpc.cpp b/src/rpc.cpp index edb096e..d5e069c 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -1056,7 +1056,7 @@ void RPC::refreshZECPrice() { void RPC::shutdownZcashd() { // 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 return; }