2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

bugfix: disconnects with new mosquitto version (wrong use of DUP flag)

git-svn-id: https://svn.fhem.de/fhem/trunk@24956 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
hexenmeister 2021-09-11 17:45:23 +00:00
parent 0fd744be43
commit 8de67e2bff

View File

@ -515,7 +515,7 @@ sub Read {
GP_ForallClients($hash,\&notify_client_connected);
foreach my $message_id (keys %{$hash->{messages}}) {
my $msg = $hash->{messages}->{$message_id}->{message};
$msg->{dup} = $msg->{ispub};
$msg->{dup} = $msg->message_type == MQTT_PUBLISH;
DevIo_SimpleWrite($hash,$msg->bytes,undef);
}
last;