Skip to content

Commit 3cf5354

Browse files
committed
Revert "Main: start IO threads before initializing the rest"
This reverts commit abc8420. This was a bad idea, too, because it broke daemonization.
1 parent 8383981 commit 3cf5354

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Main.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,6 @@ MainConfigured(const CommandLineOptions &options,
329329
Instance instance;
330330
global_instance = &instance;
331331

332-
instance.io_thread.Start();
333-
instance.rtio_thread.Start();
334-
335332
#ifdef ENABLE_NEIGHBOR_PLUGINS
336333
instance.neighbors = std::make_unique<NeighborGlue>();
337334
instance.neighbors->Init(raw_config,
@@ -424,6 +421,9 @@ MainConfigured(const CommandLineOptions &options,
424421
};
425422
#endif
426423

424+
instance.io_thread.Start();
425+
instance.rtio_thread.Start();
426+
427427
#ifdef ENABLE_NEIGHBOR_PLUGINS
428428
if (instance.neighbors != nullptr)
429429
instance.neighbors->Open();

0 commit comments

Comments
 (0)