From 134d13e493dd52380e6af3bfc72c4cf7c02cc2af Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Thu, 3 Sep 2015 07:23:40 +0000 Subject: [PATCH] fhem.pl: InternalTimer loop fix (Forum #40598) git-svn-id: https://svn.fhem.de/fhem/trunk@9195 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index e5b59f154..e50928442 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -2670,7 +2670,8 @@ HandleTimeout() # Check the internal list. foreach my $i (sort { $intAt{$a}{TRIGGERTIME} <=> $intAt{$b}{TRIGGERTIME} } keys %intAt) { - next if(!defined($i) || !$intAt{$i}); # deleted in the loop + $i = "" if(!defined($i)); # Forum #40598 + next if(!$intAt{$i}); # deleted in the loop my $tim = $intAt{$i}{TRIGGERTIME}; my $fn = $intAt{$i}{FN}; if(!defined($tim) || !defined($fn)) {