91_watchdog.pm: regexp1WontReactivate fix (Forum #60414)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12534 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-11-09 18:22:23 +00:00
parent f11f831a27
commit c92883b648

View File

@ -103,9 +103,12 @@ watchdog_Notify($$)
} }
if($n =~ m/^$re2$/ || "$n:$s" =~ m/^$re2$/) { if($n =~ m/^$re2$/ || "$n:$s" =~ m/^$re2$/) {
my $isRe1 = ($re1 eq $re2 || $re1 eq ".");
return if($isRe1 && $dontReAct); # 60414
RemoveInternalTimer($watchdog); RemoveInternalTimer($watchdog);
if(($re1 eq $re2 || $re1 eq ".") && !$dontReAct) { if($re1 eq $re2 || $re1 eq ".") {
watchdog_Activate($watchdog); watchdog_Activate($watchdog);
return ""; return "";