Skip to content

Commit

Permalink
#240 Fixed restart node
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr-Starun committed Dec 29, 2018
1 parent adec62c commit 2fa56a6
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ui/model/node_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,20 @@ void NodeModel::run()
}

if (!m_shouldTerminateModel)
runLocalNode();
{
try
{
m_shouldStartNode = false;
runLocalNode();
}
catch (const runtime_error& ex)
{
LOG_ERROR() << ex.what();
AppModel::getInstance()->getMessages().addMessage(tr("Failed to start node. Please check your node configuration"));
}
}
}
}
catch (const runtime_error& ex)
{
LOG_ERROR() << ex.what();
AppModel::getInstance()->getMessages().addMessage(tr("Failed to start node. Please check your node configuration"));
}
catch (...)
{
LOG_ERROR() << "Unhandled exception";
Expand Down

0 comments on commit 2fa56a6

Please sign in to comment.