Skip to content
Snippets Groups Projects
Commit d10c77b0 authored by Fabian Reister's avatar Fabian Reister
Browse files

fix: MemoryNameSystem waitForServer: missing call to processOnce() whenever a...

fix: MemoryNameSystem waitForServer: missing call to processOnce() whenever a new server connects to the MNS
parent 227f9d22
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,14 @@ namespace armarx::armem::mns
}
}
}
dto::RegisterServerResult MemoryNameSystem::registerServer(const dto::RegisterServerInput& input)
{
const auto result = Registry::registerServer(input);
waitForServer_processOnce();
return result;
}
armarx::RemoteGui::Client::GridLayout MemoryNameSystem::RemoteGui_buildInfoGrid()
......@@ -92,4 +100,3 @@ namespace armarx::armem::mns
}
}
......@@ -31,6 +31,8 @@ namespace armarx::armem::mns
void waitForServer_processOnce();
dto::RegisterServerResult registerServer(const dto::RegisterServerInput& input) override;
/// Builds a RemoteGui grid containing information about registered memories.
armarx::RemoteGui::Client::GridLayout RemoteGui_buildInfoGrid();
......
......@@ -35,7 +35,7 @@ namespace armarx::armem::mns
* Causes threads waiting in `waitForMemory()` to resume if the respective
* memory server was added.
*/
dto::RegisterServerResult registerServer(const dto::RegisterServerInput& input);
virtual dto::RegisterServerResult registerServer(const dto::RegisterServerInput& input);
/**
* @brief Remove a server entry.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment