mirror of
https://github.com/gelldur/EventBus.git
synced 2025-01-14 01:07:59 +08:00
Fix TagEventBus::get()
In some cases we could move our shared_ptr by mistake
This commit is contained in:
parent
2bb9c3e679
commit
f986c6c675
@ -84,7 +84,7 @@ public:
|
|||||||
return _allBus.processLimit(maxCountOfEvents);
|
return _allBus.processLimit(maxCountOfEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
|
const std::shared_ptr<EventBus<Strategy>>& get(const std::string& tag)
|
||||||
{
|
{
|
||||||
return _tagToBus.at(tag);
|
return _tagToBus.at(tag);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user