Fixed bug in TargetControllerConsole, where the TargetController would respond to an event before the TargetControllerConsole could register an interest in the response, resulting the the TargetControllerConsole missing the response.

This commit is contained in:
Nav
2021-08-19 22:03:58 +01:00
parent 01c20339f3
commit 11415ce99a
3 changed files with 66 additions and 18 deletions

View File

@@ -104,7 +104,7 @@ namespace Bloom
* @return
*/
static auto getSupportedTargets() {
static std::map<std::string, std::function<std::unique_ptr<Targets::Target>()>> mapping;
static auto mapping = std::map<std::string, std::function<std::unique_ptr<Targets::Target>()>>();
if (mapping.empty()) {
mapping = {