[Node] Load nodes after network start

This commit is contained in:
momo5502 2016-11-15 16:56:21 +01:00
parent 3a773df44b
commit f5786d0bbb
2 changed files with 8 additions and 2 deletions

View File

@ -173,8 +173,6 @@ namespace Components
if (!Loader::PerformingUnitTests()) if (!Loader::PerformingUnitTests())
{ {
Node::LoadNodeRemotePreset();
while (!News::Terminate) while (!News::Terminate)
{ {
News::CheckForUpdate(); News::CheckForUpdate();

View File

@ -878,6 +878,14 @@ namespace Components
// Install frame handlers // Install frame handlers
QuickPatch::OnFrame(Node::FrameHandler); QuickPatch::OnFrame(Node::FrameHandler);
Network::OnStart([] ()
{
std::thread([] ()
{
Node::LoadNodeRemotePreset();
}).detach();
});
} }
Node::~Node() Node::~Node()