mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user