mirror of https://github.com/Icinga/icinga2.git
Don't attempt to restore program state from non-existing state file
fixes #8444
This commit is contained in:
parent
8903c7e379
commit
7a93cf8cce
|
@ -301,6 +301,9 @@ void DynamicObject::RestoreObject(const String& message, int attributeTypes)
|
|||
|
||||
void DynamicObject::RestoreObjects(const String& filename, int attributeTypes)
|
||||
{
|
||||
if (!Utility::PathExists(filename))
|
||||
return;
|
||||
|
||||
Log(LogInformation, "DynamicObject")
|
||||
<< "Restoring program state from file '" << filename << "'";
|
||||
|
||||
|
|
Loading…
Reference in New Issue