Skip to content

Commit

Permalink
Or better stop rpc server, hide message to debug level so proper log …
Browse files Browse the repository at this point in the history
…what's going on is shown on splash
  • Loading branch information
aivve committed Jul 25, 2022
1 parent 0dc4cf4 commit f52ec70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CryptoNoteWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class RpcNode : public CryptoNote::INodeObserver, public CryptoNote::INodeRpcPro
}

void init(const std::function<void(std::error_code)>& callback) override {
m_logger(Logging::INFO) << "Initializing RpcNode...";
m_logger(Logging::DEBUGGING) << "Initializing RpcNode...";
m_node.init(callback);
}

Expand Down Expand Up @@ -339,6 +339,7 @@ class InprocessNode : public CryptoNote::INodeObserver, public Node {
m_coreConfig(coreConfig),
m_netNodeConfig(netNodeConfig),
m_rpcServerConfig(rpcServerConfig),
m_rpcServer(nullptr),
m_protocolHandler(currency, m_dispatcher, m_core, nullptr, logManager),
m_core(currency, &m_protocolHandler, logManager, m_dispatcher, true, false, false),
m_nodeServer(m_dispatcher, m_protocolHandler, logManager),
Expand Down Expand Up @@ -408,6 +409,9 @@ class InprocessNode : public CryptoNote::INodeObserver, public Node {

m_nodeServer.run();
m_nodeServer.deinit();
if (Settings::instance().hasRunRpc() && m_rpcServer != nullptr) {
m_rpcServer->stop();
}
m_core.deinit();
m_node.shutdown();
}
Expand Down

0 comments on commit f52ec70

Please sign in to comment.