Skip to content
Snippets Groups Projects
Commit 60a6b0ef authored by Marcel Krüger's avatar Marcel Krüger
Browse files

hotfix(access-node): rearrange promise assignment

parent 88f52fcc
No related branches found
No related tags found
No related merge requests found
Pipeline #251700 passed
...@@ -15,8 +15,8 @@ void TVBHttpEndpoint::RegisterRoutes(crow::App<crow::CORSHandler>& app) { ...@@ -15,8 +15,8 @@ void TVBHttpEndpoint::RegisterRoutes(crow::App<crow::CORSHandler>& app) {
crow::response TVBHttpEndpoint::GetSimInfoDetails(const crow::request& request, const std::string& value) { crow::response TVBHttpEndpoint::GetSimInfoDetails(const crow::request& request, const std::string& value) {
if (tvb_handler->srv != nullptr) { if (tvb_handler->srv != nullptr) {
tvb_handler->srv->BroadcastAll(value, ResourceFlag::kTVB);
tvb_handler->sim_info_promise = std::promise<std::string>(); tvb_handler->sim_info_promise = std::promise<std::string>();
tvb_handler->srv->BroadcastAll(value, ResourceFlag::kTVB);
auto future = tvb_handler->sim_info_promise.get_future(); auto future = tvb_handler->sim_info_promise.get_future();
auto result = future.wait_for(std::chrono::milliseconds(500)); auto result = future.wait_for(std::chrono::milliseconds(500));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment