mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
Fix stack-use-after-scope
This commit is contained in:
parent
5c9ba5e5b4
commit
4fdf9d340b
|
@ -94,7 +94,6 @@ class Context
|
|||
{
|
||||
std::unique_lock<std::mutex> lock(fMtx);
|
||||
while (fRegionEventsSubscriptionActive) {
|
||||
|
||||
while (!fRegionEvents.empty()) {
|
||||
auto i = fRegionEvents.front();
|
||||
fRegionEventCallback(i);
|
||||
|
|
|
@ -110,7 +110,7 @@ void RegionEventSubscriptions(const string& transport)
|
|||
ASSERT_EQ(region2->GetSize(), size2);
|
||||
|
||||
ASSERT_EQ(factory->SubscribedToRegionEvents(), false);
|
||||
factory->SubscribeToRegionEvents([&](FairMQRegionInfo info) {
|
||||
factory->SubscribeToRegionEvents([&, id1, id2, ptr1, ptr2](FairMQRegionInfo info) {
|
||||
LOG(info) << ">>> " << info.event << ": "
|
||||
<< (info.managed ? "managed" : "unmanaged")
|
||||
<< ", id: " << info.id
|
||||
|
|
Loading…
Reference in New Issue
Block a user