2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

fix: prevent duplicated logging

git-svn-id: https://svn.fhem.de/fhem/trunk@22046 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2020-05-27 21:59:44 +00:00
parent ff48b55ccd
commit 1759126552

View File

@ -543,8 +543,8 @@ sub Read {
my $topic = $mqtt->topic();
GP_ForallClients($hash,sub {
my $client = shift;
Log3($client->{NAME},5,"publish received for $topic, ".$mqtt->message());
if (grep { $topic =~ $_ } @{$client->{subscribeExpr}}) {
Log3($client->{NAME},5,"publish received for $topic, ".$mqtt->message());
readingsSingleUpdate($client,"transmission-state","incoming publish received",1);
my $fn = $modules{$defs{$client->{NAME}}{TYPE}}{OnMessageFn};
if($fn) {