From 9175bb999990f7d9118852ae659aeae6ab71dc3d Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Thu, 10 Oct 2019 11:32:59 -0700 Subject: [PATCH] Fix bug where zcashd wasn't shutdown --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index f7b6561..51b96c1 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -767,7 +767,7 @@ void Controller::refreshZECPrice() { void Controller::shutdownZcashd() { // Shutdown embedded zcashd if it was started - if (ezcashd == nullptr || ezcashd->processId() == 0 || ~zrpc->haveConnection()) { + if (ezcashd == nullptr || ezcashd->processId() == 0 || !zrpc->haveConnection()) { // No zcashd running internally, just return return; }