ConsoleCommands: check if console is available

This commit is contained in:
SChernykh
2022-07-07 08:32:37 +02:00
parent a7da7f932c
commit 9d692d5194
2 changed files with 22 additions and 6 deletions
+8 -1
View File
@@ -156,7 +156,14 @@ p2pool::p2pool(int argc, char* argv[])
m_blockTemplate = new BlockTemplate(this);
m_mempool = new Mempool();
m_consoleCommands = new ConsoleCommands(this);
try {
m_consoleCommands = new ConsoleCommands(this);
}
catch (...) {
LOGERR(1, "Couldn't start console commands handler");
m_consoleCommands = nullptr;
}
}
p2pool::~p2pool()