shm: fix double unlock()

This commit is contained in:
Alexey Rybalchenko 2022-01-12 19:31:00 +01:00
parent c04958e2a4
commit f79a0714b4

View File

@ -466,6 +466,7 @@ class Manager
auto r = fRegions.emplace(id, std::make_unique<UnmanagedRegion>(fShmId, 0, true, std::move(cfg)));
r.first->second->InitializeQueues();
r.first->second->StartAckSender();
lockedShmLock.lock();
return r.first->second.get();
} catch (std::out_of_range& oor) {
LOG(error) << "Could not get remote region with id '" << id << "'. Does the region creator run with the same session id?";