mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fhem.pl: more checks when inserting duplicates.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3682 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7f5607392e
commit
48e4dae727
5
fhem.pl
5
fhem.pl
@ -2696,7 +2696,7 @@ Dispatch($$$)
|
||||
next if($dmsg !~ m/$modules{$m}{Match}/i);
|
||||
|
||||
if( my $ffn = $modules{$m}{FingerprintFn} ) {
|
||||
(my $isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn);
|
||||
($isdup, $idx) = CheckDuplicate($name, $dmsg, $ffn);
|
||||
return rejectDuplicate($name,$idx,$addvals) if($isdup);
|
||||
}
|
||||
|
||||
@ -2780,7 +2780,8 @@ Dispatch($$$)
|
||||
}
|
||||
}
|
||||
|
||||
$duplicate{$idx}{FND} = \@found;
|
||||
$duplicate{$idx}{FND} = \@found
|
||||
if(defined($idx) && defined($duplicate{$idx}));
|
||||
|
||||
return \@found;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user