mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Read in fhem.state even if fhem.cfg contains errors
git-svn-id: https://svn.fhem.de/fhem/trunk@1451 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f492faaf8d
commit
b25401f03f
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user