Fix bug where zcashd wasn't shutdown

This commit is contained in:
Aditya Kulkarni
2019-10-10 11:32:59 -07:00
parent 2884c4da02
commit 9175bb9999

View File

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