From 13394f45b3a1970db9608e8dde669f3e204bb7e9 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Mon, 28 May 2012 07:27:17 +0000 Subject: [PATCH] bugfix for ignoring the rest of a commandchains, if an element triggers (via notify) another command. caused by making the internal sleep unblocking, reported by tobias git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1589 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index b763f217c..b7121688e 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -684,6 +684,7 @@ AnalyzeCommandChain($$) $cmd =~ s/#.*$//s; $cmd =~ s/;;/SeMiCoLoN/g; + my @saveCmdList = @cmdList; # Needed for recursive calls @cmdList = split(";", $cmd); my $subcmd; while(defined($subcmd = shift @cmdList)) { @@ -691,6 +692,7 @@ AnalyzeCommandChain($$) my $lret = AnalyzeCommand($c, $subcmd); push(@ret, $lret) if(defined($lret)); } + @cmdList = @saveCmdList; return join("\n", @ret) if(@ret); return undef; }