[Node] Load nodes after network start
This commit is contained in:
parent
3a773df44b
commit
f5786d0bbb
@ -173,8 +173,6 @@ namespace Components
|
|||||||
|
|
||||||
if (!Loader::PerformingUnitTests())
|
if (!Loader::PerformingUnitTests())
|
||||||
{
|
{
|
||||||
Node::LoadNodeRemotePreset();
|
|
||||||
|
|
||||||
while (!News::Terminate)
|
while (!News::Terminate)
|
||||||
{
|
{
|
||||||
News::CheckForUpdate();
|
News::CheckForUpdate();
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user