mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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:
parent
cf210f48b1
commit
5b7f3b2d62
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user