mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
Avoid "Cannot autoload UNDEFINED", if the autoloaded module has syntax errors
git-svn-id: https://svn.fhem.de/fhem/trunk@1736 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
662cd0559f
commit
81c9304783
@ -2379,7 +2379,8 @@ Dispatch($$$)
|
||||
my ($order, $mname) = split(":", $m);
|
||||
|
||||
if($attr{global}{autoload_undefined_devices}) {
|
||||
$mname = LoadModule($mname);
|
||||
my $newm = LoadModule($mname);
|
||||
$mname = $newm if($newm ne "UNDEFINED");
|
||||
if($modules{$mname} && $modules{$mname}{ParseFn}) {
|
||||
no strict "refs";
|
||||
@found = &{$modules{$mname}{ParseFn}}($hash,$dmsg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user