mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
00_MQTT2_CLIENT.pm: fix deleting retained messages
git-svn-id: https://svn.fhem.de/fhem/trunk@28149 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0efe9ce87a
commit
37edf5fc18
@ -452,7 +452,7 @@ MQTT2_CLIENT_Set($@)
|
||||
if($a[0] eq "publish") {
|
||||
shift(@a);
|
||||
my $retain;
|
||||
if(@a>2 && $a[0] eq "-r") {
|
||||
if(@a>0 && $a[0] eq "-r") {
|
||||
$retain = 1;
|
||||
shift(@a);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user