daemon: don't drop RPC with busy error when running offline

This commit is contained in:
moneromooo-monero
2018-01-25 13:35:58 +00:00
parent 5f09d6c833
commit e3f0980a1d
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ public:
boost::program_options::variables_map const & vm
)
: core{vm}
, protocol{vm, core}
, protocol{vm, core, command_line::get_arg(vm, cryptonote::arg_offline)}
, p2p{vm, protocol}
{
// Handle circular dependencies
+2 -2
View File
@@ -46,9 +46,9 @@ private:
public:
t_protocol(
boost::program_options::variables_map const & vm
, t_core & core
, t_core & core, bool offline = false
)
: m_protocol{core.get(), nullptr}
: m_protocol{core.get(), nullptr, offline}
{
MGINFO("Initializing cryptonote protocol...");
if (!m_protocol.init(vm))