From ef2111a371ce31b8f97320be2d5c274ef11b83c7 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: svn://svn.code.sf.net/p/fhem/code/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)) {