Fix CID 350448 (uncaught exception)

This commit is contained in:
Alexey Rybalchenko 2020-01-14 12:11:02 +01:00 committed by Dennis Klein
parent b6791856f9
commit b6d9c949ae

View File

@ -463,6 +463,8 @@ void Monitor::Cleanup(const string& shmId)
RemoveObject(managementSegmentName.c_str()); RemoveObject(managementSegmentName.c_str());
} catch (bie&) { } catch (bie&) {
cout << "Did not find '" << managementSegmentName << "' shared memory segment. No regions to cleanup." << endl; cout << "Did not find '" << managementSegmentName << "' shared memory segment. No regions to cleanup." << endl;
} catch(std::out_of_range& oor) {
cout << "Could not locate element in the region map, out of range: " << oor.what() << endl;
} }
RemoveObject("fmq_" + shmId + "_main"); RemoveObject("fmq_" + shmId + "_main");