Skip to content

Commit

Permalink
modified: src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillmartin committed Jun 27, 2024
1 parent 7cfdd3d commit c5eae26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/v2i-hub/PedestrianPlugin/src/PedestrianPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ PedestrianPlugin::PedestrianPlugin(const std::string &name) : PluginClient(name)
{
if (_signSimClient != nullptr)
_signSimClient.reset();

UpdateConfigSettings();
std::lock_guard<mutex> lock(_cfgLock);

std::thread webServiceThread(&PedestrianPlugin::StartWebService, this);
webServiceThread.detach(); // wait for the thread to finish
runningWebService = true;
}

int PedestrianPlugin::StartWebSocket()
Expand Down

0 comments on commit c5eae26

Please sign in to comment.