mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
fhem.pl: more flexible RemoveInternalTimer (Forum #81365)
-- This line, and those below, will be ignored-- M fhem.pl git-svn-id: https://svn.fhem.de/fhem/trunk@15667 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e1a91d2f05
commit
7fc91df6ea
@ -3132,9 +3132,10 @@ sub
|
||||
RemoveInternalTimer($;$)
|
||||
{
|
||||
my ($arg, $fn) = @_;
|
||||
return if(!$arg && !$fn);
|
||||
foreach my $a (keys %intAt) {
|
||||
delete($intAt{$a}) if($intAt{$a}{ARG} eq $arg &&
|
||||
(!$fn || $intAt{$a}{FN} eq $fn));
|
||||
delete($intAt{$a}) if((!$arg || $intAt{$a}{ARG} eq $arg) &&
|
||||
(!$fn || $intAt{$a}{FN} eq $fn));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user