2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

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: https://svn.fhem.de/fhem/trunk@1589 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-05-28 07:27:17 +00:00
parent cf210f48b1
commit 5b7f3b2d62

View File

@ -684,6 +684,7 @@ AnalyzeCommandChain($$)
$cmd =~ s/#.*$//s; $cmd =~ s/#.*$//s;
$cmd =~ s/;;/SeMiCoLoN/g; $cmd =~ s/;;/SeMiCoLoN/g;
my @saveCmdList = @cmdList; # Needed for recursive calls
@cmdList = split(";", $cmd); @cmdList = split(";", $cmd);
my $subcmd; my $subcmd;
while(defined($subcmd = shift @cmdList)) { while(defined($subcmd = shift @cmdList)) {
@ -691,6 +692,7 @@ AnalyzeCommandChain($$)
my $lret = AnalyzeCommand($c, $subcmd); my $lret = AnalyzeCommand($c, $subcmd);
push(@ret, $lret) if(defined($lret)); push(@ret, $lret) if(defined($lret));
} }
@cmdList = @saveCmdList;
return join("\n", @ret) if(@ret); return join("\n", @ret) if(@ret);
return undef; return undef;
} }