Read in fhem.state even if fhem.cfg contains errors
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1451 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -968,8 +968,9 @@ CommandRereadCfg($$)
|
||||
doGlobalDef($cfgfile);
|
||||
|
||||
my $ret = CommandInclude($cl, $cfgfile);
|
||||
if(!$ret && $attr{global}{statefile} && -r $attr{global}{statefile}) {
|
||||
$ret = CommandInclude($cl, $attr{global}{statefile});
|
||||
if($attr{global}{statefile} && -r $attr{global}{statefile}) {
|
||||
my $ret2 = CommandInclude($cl, $attr{global}{statefile});
|
||||
$ret = (defined($ret) ? "$ret\n$ret2" : $ret2) if(defined($ret2));
|
||||
}
|
||||
DoTrigger("global", "REREADCFG");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user