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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user