Catch any file I/O exceptions reported whilst cleaning up the updater directory in UpdateInstaller::cleanup()

This commit is contained in:
Robert Knight 2011-08-22 18:04:52 +01:00
parent 7893fe500a
commit 66dc8d4720

View file

@ -143,8 +143,15 @@ void UpdateInstaller::run() throw ()
LOG(Info,"Cleaning up temporary updater files");
ProcessUtils::waitForProcess(m_waitPid);
cleanup();
try
{
cleanup();
}
catch (const FileOps::IOException& ex)
{
LOG(Error,"Error cleaning up updater " + std::string(ex.what()));
}
LOG(Info,"Updater files removed");
}
}