summaryrefslogtreecommitdiff
path: root/src/hub.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-08-17 20:47:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-08-17 20:47:23 (GMT)
commit4a0320f107f294d1b870d44b10ae4b5ebd73f924 (patch)
tree0ed5715723a4dad99f9b75d6207353d1e3ec19af /src/hub.c
parent7b90c29f1fd7f685d883ef6c0be75c46ec495a34 (diff)
Made sure the server has everything required to run.
Diffstat (limited to 'src/hub.c')
-rw-r--r--src/hub.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hub.c b/src/hub.c
index b77bdb8..54b84ce 100644
--- a/src/hub.c
+++ b/src/hub.c
@@ -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