Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/chain.cpp
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | public: | ||||
} | } | ||||
} | } | ||||
throw; | throw; | ||||
} | } | ||||
}; | }; | ||||
::tableRPC.appendCommand(m_command.name, &m_command); | ::tableRPC.appendCommand(m_command.name, &m_command); | ||||
} | } | ||||
void disconnect() override final { | void disconnect() final { | ||||
if (m_wrapped_command) { | if (m_wrapped_command) { | ||||
m_wrapped_command = nullptr; | m_wrapped_command = nullptr; | ||||
::tableRPC.removeCommand(m_command.name, &m_command); | ::tableRPC.removeCommand(m_command.name, &m_command); | ||||
} | } | ||||
} | } | ||||
~RpcHandlerImpl() override { disconnect(); } | ~RpcHandlerImpl() override { disconnect(); } | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |