From 41edf32c717c12a3879a50613d6fcfd7c7dc8616 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Sat, 2 Feb 2019 19:16:59 -0800 Subject: [PATCH] #92 - Check process is alive before shuting it down --- src/rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }