mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
Rereadcfg will continue even if one of the UndedFn's returns an error.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2a948c2fa2
commit
0ab57fa7a6
6
fhem.pl
6
fhem.pl
@ -889,8 +889,10 @@ CommandRereadCfg($$)
|
|||||||
$init_done = 0;
|
$init_done = 0;
|
||||||
|
|
||||||
foreach my $d (keys %defs) {
|
foreach my $d (keys %defs) {
|
||||||
my $ret = CallFn($d, "UndefFn", $defs{$d}, $d) if($name && $name ne $d);
|
my $ret = CallFn($d, "UndefFn", $defs{$d}, $d)
|
||||||
return $ret if($ret);
|
if($name && $name ne $d);
|
||||||
|
Log 1, "$d is against deletion ($ret), continuing with rereadcfg anyway"
|
||||||
|
if($ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
my $cfgfile = $attr{global}{configfile};
|
my $cfgfile = $attr{global}{configfile};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user