2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 03:44:52 +00:00

fhem.pl: avoid WARNING when autoloading nonexistent FS20V.pm (Forum #130952)

git-svn-id: https://svn.fhem.de/fhem/trunk@26866 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-12-17 20:04:47 +00:00
parent 41542c0d5a
commit 9365c35e2f

View File

@ -4192,7 +4192,8 @@ Dispatch($$;$$)
if(defined($h)) { if(defined($h)) {
foreach my $m (sort keys %{$h}) { foreach my $m (sort keys %{$h}) {
my ($order, $mname) = split(":", $m); my ($order, $mname) = split(":", $m);
next if($modules{$mname}{LOADED}); # checked in the loop above, #125292 next if(!$modules{$mname} ||
!$modules{$mname}{LOADED}); # checked in the loop above, #125292
if($dmsg =~ m/$h->{$m}/s) { 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);