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; }