From c5eae2635b0c9cb4c180e56ad961b31c161b7026 Mon Sep 17 00:00:00 2001 From: jwillmartin Date: Thu, 27 Jun 2024 11:28:52 -0400 Subject: [PATCH] modified: src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp --- src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp b/src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp index 6733abff3..aa3f6ddff 100644 --- a/src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp +++ b/src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp @@ -25,6 +25,13 @@ PedestrianPlugin::PedestrianPlugin(const std::string &name) : PluginClient(name) { if (_signSimClient != nullptr) _signSimClient.reset(); + + UpdateConfigSettings(); + std::lock_guard lock(_cfgLock); + + std::thread webServiceThread(&PedestrianPlugin::StartWebService, this); + webServiceThread.detach(); // wait for the thread to finish + runningWebService = true; } int PedestrianPlugin::StartWebSocket()