Commit 70483454 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed DriveCatalogue::findDrive() throwing an exception when a drive had no pid

parent b13a81ba
......@@ -305,8 +305,12 @@ castor::tape::tapeserver::daemon::DriveCatalogueEntry
for(DriveMap::iterator i = m_drives.begin(); i!=m_drives.end(); i++) {
DriveCatalogueEntry * drive = i->second;
if(sessionPid == drive->getSessionPid()) {
return drive;
try {
if(sessionPid == drive->getSessionPid()) {
return drive;
}
} catch(...) {
// Ignore any exceptions thrown by getSessionPid()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment