Fix CID 350451 (uncaught exception)

This commit is contained in:
Alexey Rybalchenko 2020-01-14 12:04:38 +01:00 committed by Dennis Klein
parent a1e0814a92
commit b6791856f9

View File

@ -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) {