summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 960f591637..902c32b968 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -66,6 +66,9 @@ int main(int /*argc*/, char** /*argv*/)
auto io = std::make_shared<boost::asio::io_context>();
App app(io);
+ crow::connections::systemBus =
+ std::make_shared<sdbusplus::asio::connection>(*io);
+
// Static assets need to be initialized before Authorization, because auth
// needs to build the whitelist from the static routes
@@ -113,9 +116,6 @@ int main(int /*argc*/, char** /*argv*/)
setupSocket(app);
- crow::connections::systemBus =
- std::make_shared<sdbusplus::asio::connection>(*io);
-
#ifdef BMCWEB_ENABLE_VM_NBDPROXY
crow::nbd_proxy::requestRoutes(app);
#endif