Revert "Main: start IO threads before initializing the rest"
This reverts commit abc84206977744f30f528f2ef27d87220266276d. This was a bad idea, too, because it broke daemonization.
This commit is contained in:
parent
838398103c
commit
3cf5354e3f
@ -329,9 +329,6 @@ MainConfigured(const CommandLineOptions &options,
|
|||||||
Instance instance;
|
Instance instance;
|
||||||
global_instance = &instance;
|
global_instance = &instance;
|
||||||
|
|
||||||
instance.io_thread.Start();
|
|
||||||
instance.rtio_thread.Start();
|
|
||||||
|
|
||||||
#ifdef ENABLE_NEIGHBOR_PLUGINS
|
#ifdef ENABLE_NEIGHBOR_PLUGINS
|
||||||
instance.neighbors = std::make_unique<NeighborGlue>();
|
instance.neighbors = std::make_unique<NeighborGlue>();
|
||||||
instance.neighbors->Init(raw_config,
|
instance.neighbors->Init(raw_config,
|
||||||
@ -424,6 +421,9 @@ MainConfigured(const CommandLineOptions &options,
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
instance.io_thread.Start();
|
||||||
|
instance.rtio_thread.Start();
|
||||||
|
|
||||||
#ifdef ENABLE_NEIGHBOR_PLUGINS
|
#ifdef ENABLE_NEIGHBOR_PLUGINS
|
||||||
if (instance.neighbors != nullptr)
|
if (instance.neighbors != nullptr)
|
||||||
instance.neighbors->Open();
|
instance.neighbors->Open();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user