mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
handle rereadcfg
git-svn-id: https://svn.fhem.de/fhem/trunk@4417 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2a64f0136c
commit
7abe1f4f16
@ -95,13 +95,14 @@ mailcheck_Notify($$)
|
||||
{
|
||||
my ($hash,$dev) = @_;
|
||||
|
||||
if( grep(m/^INITIALIZED$/, @{$dev->{CHANGED}}) ) {
|
||||
delete $modules{mailcheck}->{NotifyFn};
|
||||
return if($dev->{NAME} ne "global");
|
||||
return if(!grep(m/^INITIALIZED|REREADCFG$/, @{$dev->{CHANGED}}));
|
||||
|
||||
foreach my $d (keys %defs) {
|
||||
next if($defs{$d}{TYPE} ne "mailcheck");
|
||||
mailcheck_Connect($defs{$d});
|
||||
}
|
||||
delete $modules{mailcheck}->{NotifyFn};
|
||||
|
||||
foreach my $d (keys %defs) {
|
||||
next if($defs{$d}{TYPE} ne "mailcheck");
|
||||
mailcheck_Connect($defs{$d});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user