mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
fhem.pl: fix the Dispatch/Multi-ParseFn-Bugfix (Forum #125292)
git-svn-id: https://svn.fhem.de/fhem/trunk@25489 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
44c1e79827
commit
2624018410
@ -4108,10 +4108,9 @@ Dispatch($$;$$)
|
|||||||
$h = $module->{MatchList} if(!$h);
|
$h = $module->{MatchList} if(!$h);
|
||||||
if(defined($h)) {
|
if(defined($h)) {
|
||||||
foreach my $m (sort keys %{$h}) {
|
foreach my $m (sort keys %{$h}) {
|
||||||
next if($modules{$m}{LOADED}); # checked in the loop above, #125292
|
|
||||||
if($dmsg =~ m/$h->{$m}/s) {
|
|
||||||
my ($order, $mname) = split(":", $m);
|
my ($order, $mname) = split(":", $m);
|
||||||
|
next if($modules{$mname}{LOADED}); # checked in the loop above, #125292
|
||||||
|
if($dmsg =~ m/$h->{$m}/s) {
|
||||||
if(AttrVal("global", "autoload_undefined_devices", 1)) {
|
if(AttrVal("global", "autoload_undefined_devices", 1)) {
|
||||||
my $newm = LoadModule($mname);
|
my $newm = LoadModule($mname);
|
||||||
$mname = $newm if($newm ne "UNDEFINED");
|
$mname = $newm if($newm ne "UNDEFINED");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user