diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-08-17 20:47:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-08-17 20:47:23 (GMT) |
commit | 4a0320f107f294d1b870d44b10ae4b5ebd73f924 (patch) | |
tree | 0ed5715723a4dad99f9b75d6207353d1e3ec19af /src/hub.c | |
parent | 7b90c29f1fd7f685d883ef6c0be75c46ec495a34 (diff) |
Made sure the server has everything required to run.
Diffstat (limited to 'src/hub.c')
-rw-r--r-- | src/hub.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -41,6 +41,7 @@ #include "gleak.h" #include "analysis/db/auth.h" #include "analysis/db/server.h" +#include "core/core.h" #include "core/global.h" #include "core/logs.h" #include "core/paths.h" @@ -360,6 +361,9 @@ int main(int argc, char **argv) set_log_verbosity(verbosity); + if (!load_all_core_components(false)) + goto done; + /* Traitement des commandes */ switch (command) @@ -387,6 +391,8 @@ int main(int argc, char **argv) } + unload_all_core_components(false); + #ifdef TRACK_GOBJECT_LEAKS remember_gtypes_for_leaks(); #endif |