qt, refactor: Fix code styling of moved InitExecutor class
This commit is contained in:
1 file changed
+4
-6
@@ -15,8 +15,8 @@
|
|||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
InitExecutor::InitExecutor(interfaces::Node& node) :
|
InitExecutor::InitExecutor(interfaces::Node& node)
|
||||||
QObject(), m_node(node)
|
: QObject(), m_node(node)
|
||||||
{
|
{
|
||||||
this->moveToThread(&m_thread);
|
this->moveToThread(&m_thread);
|
||||||
m_thread.start();
|
m_thread.start();
|
||||||
@@ -38,8 +38,7 @@ void InitExecutor::handleRunawayException(const std::exception *e)
|
|||||||
|
|
||||||
void InitExecutor::initialize()
|
void InitExecutor::initialize()
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
util::ThreadRename("qt-init");
|
util::ThreadRename("qt-init");
|
||||||
qDebug() << __func__ << ": Running initialization in thread";
|
qDebug() << __func__ << ": Running initialization in thread";
|
||||||
interfaces::BlockAndHeaderTipInfo tip_info;
|
interfaces::BlockAndHeaderTipInfo tip_info;
|
||||||
@@ -54,8 +53,7 @@ void InitExecutor::initialize()
|
|||||||
|
|
||||||
void InitExecutor::shutdown()
|
void InitExecutor::shutdown()
|
||||||
{
|
{
|
||||||
try
|
try {
|
||||||
{
|
|
||||||
qDebug() << __func__ << ": Running Shutdown in thread";
|
qDebug() << __func__ << ": Running Shutdown in thread";
|
||||||
m_node.appShutdown();
|
m_node.appShutdown();
|
||||||
qDebug() << __func__ << ": Shutdown finished";
|
qDebug() << __func__ << ": Shutdown finished";
|
||||||
|
|||||||
Reference in new issue
Block a user