sys_net/NP: set some init dependencies

Ensure finalization order of network threads.
This should prevent some crashes.
This commit is contained in:
Nekotekina 2021-08-05 08:07:18 +03:00
parent 064fc81697
commit 86d2316089
4 changed files with 15 additions and 0 deletions

View file

@ -42,6 +42,8 @@ LOG_CHANNEL(nph_log, "NPHandler");
np_handler::np_handler()
{
g_fxo->need<named_thread<signaling_handler>>();
g_cfg_rpcn.load();
is_connected = (g_cfg.net.net_active == np_internet_status::enabled);