mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Fix CID 350451 (uncaught exception)
This commit is contained in:
parent
a1e0814a92
commit
b6791856f9
|
@ -193,7 +193,7 @@ Manager::~Manager()
|
||||||
{
|
{
|
||||||
bool lastRemoved = false;
|
bool lastRemoved = false;
|
||||||
|
|
||||||
{
|
try {
|
||||||
bipc::scoped_lock<bipc::named_mutex> lock(fShmMtx);
|
bipc::scoped_lock<bipc::named_mutex> lock(fShmMtx);
|
||||||
|
|
||||||
(fDeviceCounter->fCount)--;
|
(fDeviceCounter->fCount)--;
|
||||||
|
@ -206,6 +206,8 @@ Manager::~Manager()
|
||||||
} else {
|
} else {
|
||||||
LOG(debug) << "other segment users present (" << fDeviceCounter->fCount << "), not removing it.";
|
LOG(debug) << "other segment users present (" << fDeviceCounter->fCount << "), not removing it.";
|
||||||
}
|
}
|
||||||
|
} catch(bie& e) {
|
||||||
|
LOG(error) << "error while acquiring lock in Manager destructor: " << e.what();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastRemoved) {
|
if (lastRemoved) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user