Skip to content
Snippets Groups Projects
Commit 8559e699 authored by Steven Murray's avatar Steven Murray
Browse files

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

parent 6c8fd769
Branches
Tags
No related merge requests found
......@@ -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()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment